p5

let r = 200;
let polygonScaler = 2;

function setup() {
createCanvas(windowWiidth, windowHeight);
background(0);
}

function draw() {
background(0);

for (let i = 0; i < 360/polygonScaler; i++) {

r = 200;

let phi = radians(i * polygonScaler);

let px = (r * (1 + 0.156 * cos(phi * 10) * noise(frameCount/50)) * cos(phi))+width/2;
let py = (r * (1 + 0.156 * cos(phi * 10) * noise(frameCount/50)) * sin(phi))+height/2;

fill(map(cos(frameCount/50), -1, 1, 0, 255), 0, 0);
stroke(map(cos(frameCount/50), -1, 1, 0, 255)+20, 50, 0);

ellipse(px, py, 10, 10);
line(width/2, height/2, px, py);

}

for (let i = 0; i < 360/polygonScaler; i++) {

let phi = radians(i * polygonScaler);

let px = (r * (1 + 0.156 * cos(phi * 10) * noise(frameCount/50)) * cos(phi))+width/2;
let py = (r * (1 + 0.156 * cos(phi * 10) * noise(frameCount/50)) * sin(phi))+height/2;

fill(0, 0, map(cos(frameCount/50), -1, 1, 0, 255), 50);
stroke(0, 50, map(cos(frameCount/50), -1, 1, 0, 255)+20, 50);

ellipse(px, py, 10, 10);
line(width/2, height/2, px, py);

r = map(sin(frameCount/50), -1, 1, 50, 300)*2;

}

for (let i = 0; i < 360/polygonScaler; i++) {

let phi = radians(i * polygonScaler);

let px = (r * (1 + 0.156 * cos(phi * 10) * noise(frameCount/50)) * cos(phi))+width/2;
let py = (r * (1 + 0.156 * cos(phi * 10) * noise(frameCount/50)) * sin(phi))+height/2;

fill(0, 0, map(cos(frameCount/50), -1, 1, 0, 255), 50);
stroke(0, 50, map(cos(frameCount/50), -1, 1, 0, 255)+20, 50);

ellipse(px, py, 10, 10);
line(width/2, height/2, px, py);

r = map(sin(frameCount/50), -1, 1, 50, 300)*4;

}

}

ShareTw.Fb.Pin.
...
Back
Cart Your cart 0

No products in the cart.

Total¥0
Checkout
Empty

This is a unique website which will require a more modern browser to work!

Please upgrade today!