xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
rectMode(CENTER);
}
function draw() {
translate(width/2, height/2);
let s = map(sin(millis()/800), -1, 1, -200, 200)
let r = map(sin(millis()/1000), 0, 1, 0, PI);
noFill();
stroke(255);
translate(s, 0);
rotate(r);
ellipse(0, 0, 300, 500)
fill(255, 10)
rect( 0, 0, 100, 100)
fill(0, 10);
/*Geometry
translate(mouseX, mouseY);
noFill();
stroke(255);
//rotate(millis()/100);
ellipse(0, 0, random(250), random(250));
/*
//triangles
/*
noFill();
stroke(255);
translate(mouseX, mouseY);
rotate(millis()/8000);
triangle(-50, 25, 50, 25, 0, -50);
rotate(PI);
*/
}