xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
//
colorMode(RGB);
noStroke();
fill(0,1);
rect(width/2,height/2,width,height);
//random circle
noFill();
stroke(random(255),random(255),random(255));
circle(random(width), random(height), 20);
//noise circle
colorMode(HSB);
rectMode(CENTER);
push();
translate(width/4+noise(millis()*0.0008)*width/2,
height/4+noise(123456+millis()*0.0008)*height/2);
rotate(noise(123456+millis()*0.0008)*TWO_PI);
stroke(125+noise(123456+millis()*0.0008)*125,200,200);
rect(0,0,noise(123456+millis()*0.0008)*height/2,
noise(123456+millis()*0.0008)*height/2);
pop();
}
function keyPressed(){
save("test.svg");
}