home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Gradually_Shear_Image_Right < prev    next >
Encoding:
Text File  |  1995-10-16  |  1.3 KB  |  57 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5. Lines=7
  6. 01=Gradually Shear Image Right
  7. 02= 
  8. 03=This script loads each image of the File List Window
  9. 04=into ImageFX and Gradually skews image to the right over
  10. 05=the length of frames. It divides the total number of
  11. 06=frames by the current frame number * the highest value
  12. 07=of this function to gradually adjust the list.
  13.  
  14. */
  15.  
  16. options results
  17.  
  18. arg FrameNum TotalFiles
  19. address "IMAGEFX.1"
  20.  
  21.  
  22. if FrameNum = 0 then do
  23.     FrameNum = 1
  24.     NumA = 0
  25.     NumB = 255
  26.     NumC = 0
  27.     RequestSlider '"Enter Red Value For Background!"' NumA NumB NumC
  28.     Answer = Result
  29.     RequestSlider '"Enter Green Value For Background!"' NumA NumB NumC
  30.     Answer2 = Result
  31.     RequestSlider '"Enter Blue Value For Background!"' NumA NumB NumC
  32.     Answer3 = Result
  33.     call open TempFile,"Ram:CT-IFGSL",W
  34.     call writeln TempFile,Answer
  35.     call writeln TempFile,Answer2
  36.     call writeln TempFile,Answer3
  37.     call close TempFile
  38.     end
  39. else do
  40.     call open TempFile,"Ram:CT-IFGSL",R
  41.     line = readln(TempFile)
  42.     parse var line Answer
  43.     line = readln(TempFile)
  44.     parse var line Answer2
  45.     line = readln(TempFile)
  46.     parse var line Answer3
  47.     call close TempFile
  48.     end
  49.  
  50. Num = ((FrameNum * 86)/(TotalFiles))
  51. Num = trunc(Num)
  52. Hook Shear Num Answer Answer2 Answer3
  53.  
  54.  
  55.  
  56. exit
  57.