Anonymous user
Fibonacci word/fractal: Difference between revisions
m
→{{header|Icon}} and {{header|Unicon}}
Line 13:
=={{header|Icon}} and {{header|Unicon}}==
This probably only works in Unicon. It also defaults to showing the factal for F_word<sub>
larger fractals quickly exceed the size of window I can display, even with a line segment length of
a single pixel.
Line 20:
procedure main(A)
n := integer(A[1]) |
sl := integer(A[2]) | 1 # Segment length
width := integer(A[3]) | 1050 # Width of plot area
height := integer(A[4]) |
w := fword(n)
drawFractal(n,w,sl)
|