xxxxxxxxxx
53
let c
let count = 10;
let size = 500;
let count2 = 5
function setup() {
c = createCanvas(600, 600);
}
function draw() {
// background(220);
background(218,247,166);
for (let index = 0; index < count; index++) {
let x = map(index, 0, count - 1, 200, 200);
let y = map(index, 0, count -1, 100, 500 );
circle(x, y, 60);
fill('#FD990596');
noStroke();
// strokeWeight(3);
// stroke('#FD990596');
// line(200,100,200,500);
// line(400,300,400,500);
// line(200,300,400,300);
}
for (let index = 0; index < count2; index++) {
let x2 = map(index, 0, count2 - 1, 400, 400);
let y2 = map(index, 0, count2 - 1, 300, 500 );
let x3 = map(index, 0, count2 - 1, 200, 400);
let y3 = map(index, 0, count2 - 1, 300, 300 );
circle(x2, y2, 60);
circle(x3, y3, 60);
}
}
function mouseClick() {
saveCanvas(c,'GridLetter.jpeg');
}