xxxxxxxxxx
26
function setup() {
initializeFields();
createCanvas(900, 700);
background(255);
noFill();
stroke(0, 40);
frameRate(200);
}
function draw() {
var t = float(frameCount);
translate((width - 70) / 2, height / 2);
strokeWeight(4);
stroke(random(250), 100, random(250), 60);
ellipse(sin(t / 50) * t / 5, cos(t / 50) * t / 5, t, t);
}
function keyReleased() {
if (key == 's' || key == 'S') {
save("Frames/image-" + frameCount + ".jpg");
}
}
function initializeFields() {
}