Created
April 1, 2013 10:58
-
-
Save disser2/5284300 to your computer and use it in GitHub Desktop.
Really nice curve consisting only out of straight lines
This file contains 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
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