home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
551-575
/
apd558
/
amoner1
/
frac.amos
/
frac.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1993-11-29
|
861b
|
24 lines
Screen Open 0,320,200,32,LORES
Cls 0
STIMER=Timer : Flash Off
Rem xp = The X Starting coordinate of the screen
Rem yp = The Y Starting coordinate of the screen
Rem Num_of_color = How meny colours are on the screen.
Rem Width = Width of the drawing area.
Rem Height = Hight of the drawing area.
Rem Xmin#, Xmax# = X limits of Fractel.
Rem Ymin#, Ymax# = Y limits of Fractal.
XP=10 : YP=10 : NUM_OF_COLOR=32 : WIDTH=88 : HEIGHT=162
XMIN#=-2 : XMAX#=0.5 : YMIN#=-1.25 : YMAX#=1.25
For X#=XMIN# To XMAX# Step((XMAX#-XMIN#)/WIDTH)
For Y#=YMIN# To YMAX# Step((YMAX#-YMIN#)/HEIGHT)
REP=0 : ZX#=0 : ZY#=0
CALC:
TEMP#=ZX# : ZX#=ZX#^2-ZY#^2+X# : ZY#=2*TEMP#*ZY#+Y#
Inc REP
If((REP<50) and((ZX#^2+ZY#^2)<4)) Then Goto CALC
CT=Int((REP*NUM_OF_COLOR)/50) : Plot XP,YP,CT : Inc YP
Next Y#
YP=51 : Inc XP
Next X#
' Print(Timer-STIMER)/3000