Created
December 18, 2016 17:52
-
-
Save paulinalinaa/b495331fa2421680740a1b987579aeea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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