/* built with Studio Sketchpad: * https://sketchpad.cc * * observe the evolution of this sketch: * https://spagnuolo.sketchpad.cc/sp/pad/view/ro.TcAmNK8F9VP/rev.1139 * * authors: * Zoe Kellam * Charlotte Hicks * license (unless otherwise specified): * creative commons attribution-share alike 3.0 license. * https://creativecommons.org/licenses/by-sa/3.0/ */ // Name: Charlotte Hicks // Date: 1/03/2016 // Title: Assessment 2 size(400,400); background(0); //ellipse strokeWeight(5); stroke(0,0,150); fill(); ellipse(200,200,150,150); //lines int s = 400; strokeWeight(10); stroke(10,0,255); line(200,200,s,400); s = s - 50 strokeWeight(10); stroke(10,0,255); line(200,200,s,400); s = s - 50 strokeWeight(10); stroke(10,0,255); line(200,200,s,400); s = s - 50 strokeWeight(10); stroke(10,0,255); line(200,200,s,400); s = s - 50 strokeWeight(10); stroke(10,0,255); line(200,200,s,400); //lines 2 s = s - 50 strokeWeight(5); stroke(255,10,0); line(200,200,s,400); s = s - 50 strokeWeight(5); stroke(255,10,0); line(200,200,s,400); s = s - 50 strokeWeight(5); stroke(255,10,0); line(200,200,s,400); s = s - 50 strokeWeight(5); stroke(255,10,0); line(200,200,s,400); //ellipse 2 int x = 200; int y = 200; strokeWeight(5); stroke(0,0,150); fill(50,150,250); rect(x,y,50,50); x = x + 50; y = y - 25; rect(x,y,50,50); x = x + 50; y = y - 25; rect(x,y,50,50); x = x + 50; y = y - 25; rect(x,y,50,50); x = x + 50; y = y - 25; rect(x,y,50,50); //ellpise 3 int x = 200; int y = 200; strokeWeight(5); stroke(0,0,150); fill(255,0,255); ellipse(x,y,50,50); fill(250,150,50); x = x - 50; y = y + 25; ellipse(x,y,50,50); x = x - 50; y = y + 25; ellipse(x,y,50,50); x = x - 50; y = y + 25; ellipse(x,y,50,50); x = x - 50; y = y + 25; ellipse(x,y,50,50); //lines 3 int e = 0 strokeWeight(2); stroke(0,255,10); line(200,200,e,0); e = e - 100 line(200,200,0,e); e = e - 100 line(200,200,0,e); e = e - 100 line(200,200,0,e); e = e - 100 line(200,200,0,e); //line opposite int e = -5 stroke(0,255,0); e = e + 50 line(200,200,0,e); e = e + 50 line(200,200,0,e); e = e + 50 line(200,200,0,e); e = e + 50 line(200,200,0,e);