summaryrefslogtreecommitdiff
path: root/test/examples/complex/mandel.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/complex/mandel.lua')
-rw-r--r--test/examples/complex/mandel.lua25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/examples/complex/mandel.lua b/test/examples/complex/mandel.lua
deleted file mode 100644
index 5e3d3eb6..00000000
--- a/test/examples/complex/mandel.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-dofile("complex.lua")
-
-xmin=-2 xmax=2 ymin=-2 ymax=2
-d=.125
-
-function level(x,y)
- local c=complex(x,y)
- local l=0
- local z=c
- repeat
- z=z*z+c
- l=l+1
- until abs(z)>2 or l>255
- return l-1
-end
-
-x=xmin
-while x<xmax do
- y=ymin
- while y<ymax do
- print(level(x,y))
- y=y+d
- end
- x=x+d
-end