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_Left < prev    next >
Encoding:
Text File  |  1995-10-16  |  1.3 KB  |  59 lines

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