Nature of the day.
พื้นฐานการใช้การวาดเส้นตรง(line) วงกลมวงรี(ellipse) การลากเส้น(stroke) การใส่สี(fill) การประกาศ(int)และการเรียกใช้
//wall
background(13, 174, 240);
fill(10, 184, 43);
stroke(102, 184, 0);
ellipse(78, 89, 85, 45);
fill(100, 190 ,0);
ellipse(25, 95, 80, 25);
//clouds
fill(245)
stroke(245)
//ก้อนเมฆทางซ้าย
ellipse(30, 30, 35, 5);
ellipse(22, 25, 10, 10);
ellipse(32, 25, 20, 15);
//ก้อนเมฆทางขวา
ellipse(98, 40, 25, 2);
ellipse(98, 38, 10, 7);
//sun
fill(302, 94, 2);
ellipse(95, 5, 25, 25);
//เส้นแสงของพระอาทิตย์
line(80, 20, 75, 25);
line(75, 10, 65, 11);
line(90, 25, 90, 30);
//tree
stroke(100);
line(10, 90, 13, 65);
line(14, 90, 14, 65);
//leaf
fill(3, 154, 40);
stroke(3, 154, 30);
ellipse(13, 60, 20, 30);
fill(3, 164, 30);
ellipse(8, 67, 25, 15);
ellipse(15, 67, 25, 15);
//paling
stroke(100);
//เส้นแนวตั้ง
int y= 100;
int y2= 85;
line(90, y, 90, y2);
line(92, y, 92, y2);
line(80, y, 80, y2);
line(82, y, 82, y2);
line(71, y, 71, y2);
line(73, y, 73, y2);
line(62, y, 62, y2);
line(64, y, 64, y2);
line(62, y2, 64, y2);
line(73, y2, 71, y2);
line(82, y2, 80, y2);
line(90, y2, 92, y2);
//เส้นแนวนอน
int x= 58;
int y= 88;
line(x, y, 100, y);
int y= 90;
line(x, y, 100, y);
line(x, y, x, 88);
int y= 95;
line(x, y, 100, y);
int y= 97;
line(x, y, 100, y);
//wall
ตอบลบbackground(13, 174, 240);
fill(10, 184, 43);
stroke(102, 184, 0);
ellipse(78, 89, 85, 45);
fill(100, 190 ,0);
ellipse(25, 95, 80, 25);
//clouds
fill(245)
stroke(245)
//ก้อนเมฆทางซ้าย
ellipse(30, 30, 35, 5);
ellipse(22, 25, 10, 10);
ellipse(32, 25, 20, 15);
//ก้อนเมฆทางขวา
ellipse(98, 40, 25, 2);
ellipse(98, 38, 10, 7);
//sun
fill(302, 94, 2);
ellipse(95, 5, 25, 25);
//เส้นแสงของพระอาทิตย์
line(80, 20, 75, 25);
line(75, 10, 65, 11);
line(90, 25, 90, 30);
//tree
stroke(100);
line(10, 90, 13, 65);
line(14, 90, 14, 65);
//leaf
fill(3, 154, 40);
stroke(3, 154, 30);
ellipse(13, 60, 20, 30);
fill(3, 164, 30);
ellipse(8, 67, 25, 15);
ellipse(15, 67, 25, 15);
//paling
stroke(100);
//เส้นแนวตั้ง
int y= 100;
int y2= 85;
line(90, y, 90, y2);
line(92, y, 92, y2);
line(80, y, 80, y2);
line(82, y, 82, y2);
line(71, y, 71, y2);
line(73, y, 73, y2);
line(62, y, 62, y2);
line(64, y, 64, y2);
line(62, y2, 64, y2);
line(73, y2, 71, y2);
line(82, y2, 80, y2);
line(90, y2, 92, y2);
//เส้นแนวนอน
int x= 58;
int y= 88;
line(x, y, 100, y);
int y= 90;
line(x, y, 100, y);
line(x, y, x, 88);
int y= 95;
line(x, y, 100, y);
int y= 97;
line(x, y, 100, y);