xxxxxxxxxx
39
function setup() {
createCanvas(1000, 1000);
}
function draw() {
background(255);
blendMode(BLEND);
blendMode(DARKEST);
frameRate(100);
strokeWeight(1);
noStroke();
let offx = 3* sin(frameCount/40);
let offy = 4 * sin(frameCount/50);
let nc = 400;
for(let i=0; i<nc;i++)
{
// fill(128+127*sin(i));
fill
(
map (sin(TWO_PI*i/nc*3),-1,1,0,255),
map (sin(TWO_PI*i/nc*2),-1,1,0,255),
map(sin(TWO_PI*i/nc),-1,1,0,255)
);
circle(
500+150*sin(i/nc*TWO_PI*3+offx),
500+150*cos(i/nc*TWO_PI*2+offy),
50);
}
// posible - 0.02 and 0.07
}