home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 127
/
af127a.adf
/
PerfectPaint.lzx
/
PerfectPaint
/
rexx
/
circle
/
AnimPainting_Circle.rx
next >
Wrap
Text File
|
1999-06-17
|
700b
|
47 lines
/* Script Rexx
AnimPainting for Circle*/
call addlib("rexxmathlib.library", 5, -30, 0)
options results
parse ARG Port x1 y1 r b
ADDRESS value Port
pp_DialogInit 250 60 "*AnimPainting*Circle*" 1
pp_Cycle 0 100 8 100 16 "Order" 1 "--->|<---" 0
pp_Dialog
rc=result
if rc=0 then
do
EXIT
end
pp_GetDialog 0
sens=result
pp_CountFrames
nb=result
IF nb<2 then DO
pp_Warn 'Make*an*Anim*first.'
EXIT
END
Pi=3.1415926/180
if sens=0 then DO
DO i=359 To 0 by -1
x = Sin(i*Pi)*r+x1
y = Cos(i*Pi)*r+y1
pp_Plot x y
pp_NextFrame
END
END
ELSE
DO i=0 To 359
x = Sin(i*Pi)*r+x1
y = Cos(i*Pi)*r+y1
pp_Plot x y
pp_NextFrame
END