Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
void setup() {
|
||||
size(410, 230);
|
||||
background(255);
|
||||
fill(0);
|
||||
sTriangle (10, 25, 100, 5);
|
||||
}
|
||||
|
||||
void sTriangle(int x, int y, int l, int n) {
|
||||
if( n == 0) text("*", x, y);
|
||||
else {
|
||||
sTriangle(x, y+l, l/2, n-1);
|
||||
sTriangle(x+l, y, l/2, n-1);
|
||||
sTriangle(x+l*2, y+l, l/2, n-1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue