Skip to content

Instantly share code, notes, and snippets.

@chrisbodhi
Created September 29, 2016 04:53
Show Gist options
  • Select an option

  • Save chrisbodhi/3e0a546137c3cb414aeeaba46705ffcb to your computer and use it in GitHub Desktop.

Select an option

Save chrisbodhi/3e0a546137c3cb414aeeaba46705ffcb to your computer and use it in GitHub Desktop.
The number two, as a Processing shape
PShape two;
void setup() {
size(640, 360);
smooth(8);
two = createShape();
two.beginShape();
two.strokeWeight(2);
two.noFill();
two.vertex(300, 220);
two.vertex(220, 220);
two.vertex(300, 140);
two.bezierVertex(300, 100, 220, 100, 220, 140);
two.endShape();
}
void draw() {
// The number two
shape(two);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment