
size(150,150);
background(204,200,0);
color c = color(255); // Define color 'c'
fill(c); // Use color variable 'c' as fill color
noStroke(); // Don't draw a stroke around shapes
ellipse(10, 10, 10, 10); // Draw left circle
ellipse(30, 100, 15, 15);
ellipse(90, 50, 10, 10);
ellipse(150, 100,5,5);
ellipse(100,90,5,5);
ellipse(80,150,10,10);
for (int i = 60; i < 85; i +=2) {
stroke(204,153,0);
line(60, i, i,60 );
}
for (int i = 20; i < 95; i +=2) {
stroke(10,50);
line(20, i,i,20);
}
for (int i = 40; i < 90; i +=2) {
stroke(10,50);
line(40, i,i,40);
}
for (int i = 10; i < 65; i +=2) {
stroke(10,50);
line(10, i,i,10);
}
String s = "Merry Christmas";
fill(100);
text(s, 80, 100, 90, 80); // Text wraps within text box
沒有留言:
張貼留言