Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Fractal-tree/EasyLang/fractal-tree.easy
Normal file
17
Task/Fractal-tree/EasyLang/fractal-tree.easy
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
proc tree x y deg n . .
|
||||
if n > 0
|
||||
linewidth n * 0.4
|
||||
move x y
|
||||
x += cos deg * n * 1.3 * (randomf + 0.5)
|
||||
y += sin deg * n * 1.3 * (randomf + 0.5)
|
||||
line x y
|
||||
call tree x y deg - 20 n - 1
|
||||
call tree x y deg + 20 n - 1
|
||||
.
|
||||
.
|
||||
timer 0
|
||||
on timer
|
||||
clear
|
||||
call tree 50 90 -90 10
|
||||
timer 1
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue