xxxxxxxxxx
31
// Inspired by
// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
let angle = 0;
function setup() {
createCanvas(640, 240);
}
function draw() {
background(115, 130, 144);
noStroke();
rectMode(CENTER);
// @todo translate();
// @todo rotate();
fill(194, 216, 185);
rect(width/2 - 50, height/2, 100, 30);
fill(228, 240, 208);
rect(width/2 + 50, height/2, 100, 30);
// @todo increment angle
}