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
| /* | |
| * Colori RGB | |
| * Federico Pepe | |
| * http://blog.federicopepe.com/processing | |
| */ | |
| // Impostiamo la dimensione della finestra a 500x500px | |
| size(500, 500); | |
| // Impostiamo lo sfondo di colore bianco | |
| background(255); |
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
| /* | |
| * Colori RGB e trasparenza | |
| * Federico Pepe | |
| * http://blog.federicopepe.com/processing | |
| */ | |
| // Impostiamo la dimensione della finestra a 500x500px | |
| size(500, 500); | |
| // Impostiamo lo sfondo di colore nero | |
| background(0); |
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); |
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
| void setup() { | |
| // Blocco di codice di setup | |
| } | |
| void draw() { | |
| // Blocco di codice di draw | |
| } |
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
| void setup() { | |
| // Questo codice verrà eseguito una sola volta | |
| size(500, 500); | |
| } | |
| void draw() { | |
| // Questo codice verrà ripetuto a una frequenza di 60fps | |
| fill(255, 0, 0); | |
| ellipse(250, 250, 150, 150); | |
| } |
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
| void setup() { | |
| size(500, 500); | |
| } | |
| void draw() { | |
| background(0); | |
| fill(255, 0, 0); | |
| ellipse(mouseX, mouseY, 150, 150); | |
| } |
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
| void setup() { | |
| size(500, 500); | |
| background(0); | |
| } | |
| void draw() { | |
| fill(255, 0, 0); | |
| ellipse(mouseX, mouseY, 150, 150); | |
| } |
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
| /* | |
| * Hard coding vs built-in variables | |
| * by Federico Pepe | |
| * http://blog.federicopepe.com | |
| */ | |
| void setup() { | |
| // Imposto la grandezza della finestra a 500x500px | |
| size(500, 500); | |
| // Imposto colore di riempimento ed elimino il bordo | |
| noStroke(); |
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
| /* | |
| * Hard coding vs built-in variables | |
| * by Federico Pepe | |
| * http://blog.federicopepe.com | |
| */ | |
| void setup() { | |
| // Imposto la grandezza della finestra a 700x700px | |
| size(700, 700); | |
| // Imposto colore di riempimento ed elimino il bordo | |
| noStroke(); |
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
| /* | |
| * Drawing Tool | |
| * by Federico Pepe | |
| * http://blog.federicopepe.com | |
| */ | |
| void setup() { | |
| size(700, 700); | |
| background(0); | |
| } |