วันพฤหัสบดีที่ 4 กรกฎาคม พ.ศ. 2556

The Cat (Like)

size (300, 300);
smooth ();
background (135, 206, 250);
strokeWeight (3);

// ears
fill (0);
triangle (40, 30, 150, 100, 50, 180);
triangle (260, 30, 250, 180, 150, 100);
// face
fill (255);
ellipse (150, 180, 200, 180);
// eyes
int cx = 100 ; // center X-axis of Eyes
int cy = 160 ; // center Y-axis of Eyes
int s = 100 ; // space of Eyes
int rx = 90 ; // radius X-axis of Eyes
int ry = 70 ; // radius Y-axis of Eyes
fill (175, 238, 238);
ellipse (cx, cy, rx, ry);
ellipse (cx + s , cy, rx, ry);

line (cx, 135, cx, 185);
line (cx + s, 135, cx + s, 185);

// mouth
fill (250, 128, 114);
triangle (150, 250, 110, 210, 190, 210);

// Whiskers
int x = 30 ; // point X of  Whiskers
int sx = 100 ; // space of point X
int l = 70 ; // Length of  Whiskers
line (x, 190, x+l, 200);
line (x, 210, x+l, 210);
line (x, 230, x+l, 220);
x = x + sx + l ;
line (x, 200, x+l, 190);
line (x, 210, x+l, 210);
line (x, 220, x+l, 230);


ไม่มีความคิดเห็น:

แสดงความคิดเห็น