PFont font;//delare the font
font = loadFont("HarlowSolid-48.vlw"); //load
textFont(font);
size(300, 300);
background(255, 204, 0);
fill(0);
noStroke();
ellipse(150, 150, 150, 150);
smooth();
fill(255, 204, 0);
ellipse(200, 100, 100, 100);
smooth();
fill(255);
textSize(23);
text("Box", 175, 250);
text("Cake", 220 ,250);
color(255, 204, 0);
smooth();
color c = color (255, 204, 0);
stroke(255);
strokeWeight(5);
smooth();
line(50,120, 170, 80);
stroke(255);
strokeWeight(5);
smooth();
line(170,80, 200, 120);
line(50, 120, 200, 120);
line(50, 120, 50, 200);
line(200, 120, 200, 200);
line(50, 200,200, 200);
line(170, 80, 170, 170);
stroke(255);
strokeWeight(5);
smooth();
line(170,170, 50, 200);
stroke(255);
strokeWeight(5);
smooth();
line(170,170, 200, 200);
沒有留言:
張貼留言