My very first assignment was due a couple of days ago and I must say it was quite fun. The assignment was to create a portrait of someone in our class, I decided to create a portrait based on my best friend Tytianna. All I did was create a bunch of lines and circles but it took a long time because it was hard to find what coordinates the lines and circles should be at to create a body. I practiced everything we learned previously by not only using lines and circles, but also changing the fills and strokes. The code I created is down below.
size(1000,700);
background(180,18,165);
fill(199,31,222);
stroke(255,255,255);
ellipse(500,400,400,400);
fill(116,63,59);
stroke(2,2,2);
ellipse(500,300,70,85);
stroke(116,63,59);
line(500,500,500,342);
line(500, 500, 450,550);
line(500,500,550,550);
line(500,365,520,410);
line(500,365,480,410);
fill(500,500,500);
ellipse(480,290,15,10);
fill(500,500,500);
ellipse(510,290,15,10);
fill(2,2,2);
ellipse(480,290,3,3);
ellipse(510,290,3,3);
fill(255,255,255);
noStroke();
rect(485,325,30,10,30);
fill(116,63,59);
stroke(2,2,2);
rect(494,305,10,10,30);
fill(110,55,59);
rect(470,200,60,60,180);
“First, solve the problem. Then, write the code.”
-John Johnson
No comments:
Post a Comment