Skip to content

Instantly share code, notes, and snippets.

@disser2
Created April 1, 2013 10:58
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 disser2/5284300 to your computer and use it in GitHub Desktop.
Save disser2/5284300 to your computer and use it in GitHub Desktop.
Really nice curve consisting only out of straight lines
void setup() {
size(900, 900);
noLoop();
}
//Hier kann eingestellt werden, wie nah die Linien beeinander liegen
int dichte = 5;
void draw() {
int a = 1;
int b = 1;
for (int i = 1; i < height; i=i+dichte) {
line(height-i,1,1,i);
//line(i,1,width,i);
//line(1,i,i,height);
line(i,height,width,height-i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment