Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created May 4, 2010 02:05
Show Gist options
  • Select an option

  • Save benatkin/388856 to your computer and use it in GitHub Desktop.

Select an option

Save benatkin/388856 to your computer and use it in GitHub Desktop.
// 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