function setup(canvas) { // The setup() function runs once, before the animation starts. canvas.size(400, 400); } function draw(canvas) { // The draw() function runs every frame. // Documentation: http://www.clips.ua.ac.be/pages/pattern-canvas canvas.clear(); fill(1, 0, 0, 1); // R,G,B,A (0.0-1.0) translate(200, 200); rotate(canvas.frame); rect(-75, -75, 150, 150); // Print some feedback (see the line below): print(canvas.mouse.x, canvas.mouse.y, "fps: "+canvas.fps); }