Fractal Programming
Variables and Repetition and Procedures


Basic Spiral


Last updated
Variables and Repetition and Procedures




Last updated
spiral = (size) ->
if size > 0
fd size * 10
rt 90
spiral size - 1
lt 90
bk size * 10
movexy -101,250
pen black, 1
speed 2
seed = (num) ->
if num > 13
for [1..4]
rt 90
fd num
fill random color
lt 90
seed(num/2)
seed(160)
jumpto 98,51
seed(160)
ht()