Skip to content

Instantly share code, notes, and snippets.

@netdesign
Created December 10, 2011 23:45
Show Gist options
  • Save netdesign/1457113 to your computer and use it in GitHub Desktop.
Save netdesign/1457113 to your computer and use it in GitHub Desktop.
Terzo Esempio
// La posizione del punto viene dichiarata con due variabili x ed y
int x = 100;
int y = 100;
void setup(){
size(640, 360);
smooth();
}
void draw(){
background(0);
stroke(255);
strokeWeight(12);
point(x, y);
point(x*0.6, y*1.1);
point(x*1.5, y+140);
point(x*1.2, y-90);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment