Skip to content

Instantly share code, notes, and snippets.

@federico-pepe
Created August 12, 2015 15:44
Show Gist options
  • Select an option

  • Save federico-pepe/aaa4d7ea001298641b40 to your computer and use it in GitHub Desktop.

Select an option

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
/*
* 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