Skip to content

Instantly share code, notes, and snippets.

@pyeseul
Last active October 22, 2015 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pyeseul/a0a4cfc5f8b5b9e85757 to your computer and use it in GitHub Desktop.
Save pyeseul/a0a4cfc5f8b5b9e85757 to your computer and use it in GitHub Desktop.
Processing Exercise 1
void setup() {
size(640, 640);
background(255);
fill(0);
}
void draw() {
//y
stroke(0);
triangle(50, 50, 100, 50, 75, 100);
line(75, 100, 50, 150);
//e
ellipse(125, 75, 50, 50);
stroke(255);
line(100, 75, 150, 75);
//s
stroke(0);
arc(180, 75, 50, 50, HALF_PI, PI+HALF_PI);
arc(180, 125, 50, 50, PI+HALF_PI, TWO_PI+HALF_PI);
//e
ellipse(225, 75, 50, 50);
stroke(255);
line(200, 75, 250, 75);
//u
stroke(0);
triangle(250, 50, 300, 50, 275, 100);
//l
stroke(0);
line(310, 50, 310, 150);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment