Floreta

 

Programador:

Dani Moreno

Instruccions:

Mou el ratolí per sobre la finestra de l’sketch

 


Codi:

 

 

void setup() {
size(800, 600);
frameRate(60);
}

void draw() {
noCursor();
noStroke();
fill(255, 15);
rect(0, 0, width, height);
pushStyle();
translate(mouseX, mouseY);
rotate(frameCount);

stroke(255,255,255);
fill(150,255,150);
rect(0, 0, 25, 45, 3, 5, 25, 15);
popStyle();
}

Deja un comentario