home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 20
/
AACD20.BIN
/
AACD
/
Graphics
/
PerfectPaint
/
rexx
/
Anim
/
Slim_Anim.rx
< prev
Wrap
Text File
|
2001-03-08
|
823b
|
61 lines
/* Slim_Anim
Ce script va :
- construire une animation de 10 images
- faire un warp sur chaque image.
- jouer l'animation
*/
options results
parse ARG Port b
ADDRESS value Port
pp_GetWidth
width=result
pp_GetHeight
height=result
IF width=0 & height=0 then DO
pp_Warn 'Load*a*picture*first'
EXIT
END
pp_AnimGui 0
nbframe=result
if nbframe<0 then
do
EXIT
end
pp_MakeAnim nbframe
radius=50
do i=1 to nbframe
pp_SetJiffies i 2
do z=0 to width by 50
do zz=0 to height by 50
Dx=random(0,5,time('S'))
Dy=random(0,5,time('S'))
a=random(0,5,time('S'))
if a>2 then
do
Dx=Dx*-1
end
a=random(0,5,time('S'))
if a>2 then
do
Dy=Dy*-1
end
pp_Warp z zz radius Dx Dy
end
end
pp_NextFrame
end
pp_PlayAnim 1
EXIT