Created
September 29, 2016 04:53
-
-
Save chrisbodhi/3e0a546137c3cb414aeeaba46705ffcb to your computer and use it in GitHub Desktop.
The number two, as a Processing shape
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
| 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