xxxxxxxxxx
function setup() {
// do not change anything in setup
let canvas = createCanvas(800, 800)
// canvas.parent('p5container');
TenThousandX()
TenThousandXz()
TenThousandXzz()
}
function TenThousandX() {
// add code here
stroke(0,255,44)
noFill()
for (var x = 0; x < 1000; x++) {
let y1 = random(0,height)
let y2 = random(0,height)
//line(0,y1,width,y2)
//triangle(0, y1, y2-1, y2, width, 10)
quad(1/2*width, y1, y2-y1, y2, 10, 30, 76,1/8*width);
}
}
function TenThousandXz() {
// add code here
stroke(0,0,1)
noFill()
for (var x = 0; x < 1000; x++) {
let y1 = random(0,height)
let y2 = random(0,height)
let y3 = 400
//line(0,y1,width,y2)
//triangle(0, y1, y2-1, y2, width, 10)
quad(1/3*width, y1, y2-1, y2, 10, 30, 76,1/2*width);
fill(255,0)
circle (y3,y3,50)
}
}
function TenThousandXzz() {
// add code here
stroke(0,0,1)
for (var x = 0; x < 1000; x++) {
let y1 = random(0,height)
let y2 = random(0,height)
let y3 = 400
fill (110,0,0)
circle (y1,y2,20)
circle (y1,y2,15)
circle (y1,y2,10)
fill(0)
circle (y1,y2,5)
noFill()
rect(y1-width, y1, y2, y2+height);
square(y2, y1, 33);
}
}