Jump to content

Barnsley fern: Difference between revisions

Line 730:
nx = 0
ny = 0.16 * y
IFelse if p <= 8 THEN
goto [a]
end if
IF p <= 8 THEN
nx = 0.2 * x - 0.26 * y
ny = 0.23 * x + 0.22 * y + 1.6
IFelse if p <= 15 THEN
goto [a]
end if
IF p <= 15 THEN
nx = -0.15 * x + 0.28 * y
ny = 0.26 * x + 0.24 * y + 0.44
else
goto [a]
nx = 0.85 * x +0.04 * y
ny = -0.04 * x +0.85 * y + 1.6
end if
nx = 0.85 * x +0.04 * y
ny = -0.04 * x +0.85 * y + 1.6
[a]
x = nx
y = ny
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.