home *** CD-ROM | disk | FTP | other *** search
- /*
- logo-spin! example of how to build anim files.
-
- $VER: Logo-Spin.rx 1.1 (1.07.96)
-
- ARexx example script for Photogenics 2
-
- Copyright © Almathera 1996. All Rights Reserved
-
- this one basically uses a loop variable ['r'] to keep track of
- the current frame ['r' is also used as the control to adjust the
- inputs to the perspective effect] - when r = 0, it's the first frame,
- when r != 0, it's mid-anim [and so a different mode of the ANIM gio
- is used], and when the loop ends, the anim is finalised. try using
- different effects or paintmodes - a 'dissolve' example is provided
- with the 'Randomise' mode, although it's commented out in this script.
-
- */
- options results
- address PHOTOGENICS.1
-
- ASKFILE "'Anim Filename?'" "ram:"
- fname = result
-
- BUFFER
- image = result
-
- x = 0
- y = 0
- z = 0
- r = 0
-
- do until r = 360
-
- EFFECT image "Perspective" x y z "BLACK"
-
- /* PAINTMODE image "Randomise"
- MODEOPTS image (r+1)
- FILLIMAGE image
- FIX image
- */
-
- if r = 0 then do
- SAVE image "ANIM" "" 128 COLOUR SMALLORDER ZEROBLACK fname
- end
- else do
- SAVE image "ANIM" "" CONTINUE SAMEPAL SMALLORDER ZEROBLACK
- end
-
- UNDO image
-
- x = x + 4
- r = r + 4
- end
-
- SAVE image "ANIM" "" END SAMEPAL SMALLORDER ZEROBLACK
-
-