Created
August 12, 2015 15:44
-
-
Save federico-pepe/aaa4d7ea001298641b40 to your computer and use it in GitHub Desktop.
Una delle possibili soluzioni al primo "Compito a casa" proposto: realizzare uno sketch ispirato a Piet Mondrian
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
| /* | |
| * Esercizio 1: "Piet Mondrian" | |
| * by Federico Pepe | |
| * http://blog.federicopepe.com/processing | |
| */ | |
| background(0); | |
| size(700, 500); | |
| noStroke(); | |
| fill(255); | |
| rect(10, 10, 100, 100); | |
| rect(10, 125, 100, 250); | |
| fill(0, 0, 255); | |
| rect(10, 390, 100, 100); | |
| fill(255, 0, 0); | |
| rect(120, 10, 400, 365); | |
| fill(255, 255, 0); | |
| rect(120, 390, 400, 100); | |
| fill(255); | |
| rect(530, 10, 160, 250); | |
| rect(530, 270, 160, 220); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment