Skip to content

Instantly share code, notes, and snippets.

@paulinalinaa
Created December 18, 2016 17:52
Show Gist options
  • Select an option

  • Save paulinalinaa/b495331fa2421680740a1b987579aeea to your computer and use it in GitHub Desktop.

Select an option

Save paulinalinaa/b495331fa2421680740a1b987579aeea to your computer and use it in GitHub Desktop.
function setup() {
var a = 150;
createCanvas(500,500);
background(255);
fill(0);
rect(350,0, a,a);
rect(350,350,a,a);
rect(0,0,a,a);
rect(0,350,a,a);
}
function draw() {
fill(255,255,255);
rectMode(CENTER);
noStroke();
rect(width/2,height/2,300,300);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment