xxxxxxxxxx
44
let size = 100;
let count = 15;
function setup() {
createCanvas(400, 550);
noLoop();
}
function draw() {
background("black");
noFill()
stroke("white")
for(let index = 0; index < count; index += 0.2) {
let offset = size / 2;
let xPosition = map(index, 0, count - 1, 0, width - offset);
//let yPosition = map(index, 0, count - 1, 0, height - offset);
let circlesize = map(index, 0, count, - 500, 90, 50)
circle(xPosition, 200, circlesize)
//let lineX1 = map(index, 0, count - 1, 150, 250);
//let lineY1 = map(index, 0, count - 1, 100, 100);
// circle(lineX1, lineY1, 20);
// let lineX2 = map(index, 0, count - 1, 400, 300);
// let lineY2 = map(index, 0, count - 1, 100, 100);
// circle(lineX2, lineY2, 20);
//circle(100, 200, 40, 50)
//circle(10, 200, 40, 50)
// circle(190, 200, 40, 50)
//console.log(index)
// let xPosition = index * size;
// let offset = size / 2
}
}