Grafkom Sesi05 Kurva Karakter

download Grafkom Sesi05 Kurva Karakter

of 5

Transcript of Grafkom Sesi05 Kurva Karakter

  • 7/29/2019 Grafkom Sesi05 Kurva Karakter

    1/5

    1

    Kurva dan Character

    Pertemuan : 04Dosen Pembina

    Sriyani Violina

    Danang Junaedi1

    Kurva

    Fungsi kurva yang bervariasi sangat

    berguna dalam :

    Pemodelan objek,

    Spesifikasi jalur animasi

    Fungsi dan data grafis

    Aplikasi grafis lainnya

    2

    Kurva

    Bentuk kurva biasanya :

    Conic

    Trigonometric Fungsi eksponensial

    Polinomial

    Fungsi spline

    3

    Conic

    Secara umum conic dapat didefinisikan

    dengan persamaan :

    Ax2 + By2 + Cxy + Dx + Ey + F = 0

    Dimana nilai parameter A, B, C, D, E, Fmenentukan bentuk kurva yangditampilkan.

    4

  • 7/29/2019 Grafkom Sesi05 Kurva Karakter

    2/5

    2

    Conic

    Bentuk conic ditentukan oleh satu set

    koefisien yang dibentuk oleh determinanB2 4AC

    < 0, lingkaran atau ellips

    B2 - 4AC = 0, parabola

    > 0, hiperbola

    5

    Contoh conic

    Persamaan lingkaran diperoleh bila

    A = B = 1

    C = 0

    D = -2xC

    E = -2yC

    F = xC2 + yC2 - R2

    6

    Parabola

    7

    Hiperbola

    8

  • 7/29/2019 Grafkom Sesi05 Kurva Karakter

    3/5

    3

    Kurva Polinomial dan Spline

    Kurva Polinomial didefinisikan sebagai

    9

    Polinomial Curve

    Polynomials are useful in a number of graphicsapplications, including the design of object shapes, thespecification of animation paths, and the graphing ofdata trends in a discrete set of data points.

    One way to accomplish the curve fitting is to constructa cubic polynomial curve section between each pair ofspecified points. each curve section is then describedin parametric form as

    10

    Studi Kasus

    Berdasarkan persamaan berikut

    tentukan bentuk yang dihasilkan(gunakan algoritma/persamaan yang

    sesuai) (x-3)2 + (y-2)2 = 25

    x2 + 2y2 + xy + 2x + y + 2 = 0

    11

    Character

    Letters, numbers, and other characters can bedisplayed in a variety of sizes and stvles. Theoverall design style for a set (or family) of

    characters is called a typeface Typefaces (or fonts) can be divided into two

    broad groups: serif and sansSerif type hassmall lines or accents at the ends of the maincharacter strokes, while sans-serif type doesnot have accents.

    12

  • 7/29/2019 Grafkom Sesi05 Kurva Karakter

    4/5 4

    Metode Penyimpanan Jenis huruf

    Bitmap

    Stroke

    13

    Metode

    Bitmap, menyimpan jenis huruf dalam

    komputer dengan menggunakan polagrid dengan bentuk segi empat. Karakteryang menggunakan metoda ini disebutbitmap font

    Stroke, menggunakan garis lurus dan

    kurva. Jenis huruf yang menggunakanmetode ini disebut outline font

    14

    Metode Bitmap(1)

    Each character's bitmap is stored in rows from top to bottom andincludes space for descender characters (even if the character isnot a descender). Within each row, the bitmap values are storedfrom left to right. In addition, each row may include one or moreblank pixels (for kerning) appended to the end of the row

    Font file structure

    Ref : fastgraph. 2001. 96-Character Font File Structure.http://www.fastgraph.com/help/96_character_font_file_structure.html . Tanggal Akses : 25 Februari 2010

    15

    Metode Bitmap(2)

    To illustrate the bitmap format, consider the following two bitmapsfor the lower case characters "x" and "y". The "x" bitmap is 10pixels wide (including one pixel of kerning) and 10 pixels high(including three rows for descenders, even though "x" is not adescender). The "y" bitmap is 9 pixels wide and 10 pixels high

    Ref : fastgraph. 2001. 96-Character Font File Structure.http://www.fastgraph.com/help/96_character_font_file_structure.html . Tanggal Akses : 25 Februari 2010

    16

  • 7/29/2019 Grafkom Sesi05 Kurva Karakter

    5/5 5

    Metode Stroke

    Untuk mendapatkan bentuk bold, italic serta berbagai

    ukuran dilakukan dengan manipulasi pada garismaupun kurva. Huruf ditampilkan menurut koordinat

    relatif (x,y) dimana pusat dari koordinat adalah pada

    posisi kiri bawah dimana karakter pertama yangditampilkan

    17