Add standing Sierpinsky Triangle demo
This commit is contained in:
parent
6a87956370
commit
5306188869
1 changed files with 13 additions and 0 deletions
13
editor/standing-sierpinsky.c6l
Normal file
13
editor/standing-sierpinsky.c6l
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
if first() then
|
||||||
|
clear_screen()
|
||||||
|
end
|
||||||
|
|
||||||
|
yh = 0
|
||||||
|
for y do 200 times
|
||||||
|
x = bitand(time(), y)
|
||||||
|
xo = x - 100 - yh
|
||||||
|
pixel_draw(xo, y)
|
||||||
|
if bitand(y, 1) == 1 then
|
||||||
|
yh = yh + 1
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue