xxxxxxxxxx
41
// function setup() {
// createCanvas(600, 600);
// }
// function draw() {
// background(220);
// }
// class PlanetarySystem {
// constructor() {
// }
// mainStar (StarRadius,){
// noStroke();
// // fill('white');
// offset = offset + 0.1;
// let n = noise(offset) * StarRadius;
// fill(255,255,255,3);
// circle(300,300,n);
// }
// }
let currentState = 0;
function setup() {
background(currentState);
}
function draw() {}
function mouseClicked() {
if (currentState === 0) {
currentState = 255;
} else {
currentState = 0;
}
background(currentState);
}