Created
May 4, 2010 02:05
-
-
Save benatkin/388856 to your computer and use it in GitHub Desktop.
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
| // my silly change to the default code on http://sketch.processing.org/ | |
| void setup() | |
| { | |
| size(200,200); | |
| background(0, 82, 51); | |
| fill(255); | |
| noLoop(); | |
| PFont fontA = loadFont("courier"); | |
| textFont(fontA, 14); | |
| } | |
| void draw(){ | |
| text("Web. Word.",20,20); | |
| stroke(255); | |
| loopty(0.1, 1.4); | |
| line(32, 25, 134, 32); | |
| } | |
| void loopty(float angle, float stop) { | |
| if (angle < stop) { | |
| loopty(angle + 0.15, stop); | |
| float x = 15.0 + 91.0 * sin(angle); | |
| float y = 15.0 + 91.0 * cos(angle); | |
| line(x, y, x + 21, y + 15 * sin(angle)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment