xxxxxxxxxx
31
let x = 0;
let y = 0;
function setup() {
createCanvas(400, 400);
background("black");
}
function draw() {
//. affects the size of the border of the shape
// strokeWeight(random(1,3));
// affects the color of the border
// stroke(random(0,255), random(0,255), random(0,255));
//. affects the color of the shape
// fill(255,255,255,50);
//. create variables for x and y
// let x = random(0,400);
// let y = random(0,400);
// circle(x, y, random(2,30));
circle(x, y, 40);
x = x + 40;
}
// Challenges
// 1. Move the circle in the y axis.
// 2. Experiment with a different colour mode
// 3. Experiment with other shapes, ellipse, rectangle, triangle
// 4. Make a line of circles on the y axis.
// 5. Make a line of cricles diagonal on the screen.