home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=7
- 01=Gradually Saturate Images
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and Gradually adjust the Saturation over
- 05=the length of frames. It divides the total number of
- 06=frames by the current frame number * the highest value
- 07=of this function to gradually adjust the list.
-
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
-
- if FrameNum = 0 then do
- FrameNum = 1
- Gadget.1 = 'Select Direction To Use!'
- Gadget.2 = 'UP'
- Gadget.3 = 'DOWN'
- ListRequest 3 Gadget
- if result = 2 then Answer = "UP"
- if result = 3 then Answer = "DOWN"
- call open TempFile,"Ram:CT-IFGS",W
- call writeln TempFile,Answer
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFGS",R
- line = readln(TempFile)
- parse var line Answer
- call close TempFile
- end
-
- Num = ((FrameNum * 127)/(TotalFiles))
- Num = trunc(Num)
- if FrameNum > 1 then do
- if Answer = "UP" then
- Saturation Num
- else
- Saturation 0-Num
- end
-
-
- exit
-