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

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=6
  7. 01=Shear
  8. 02= 
  9. 03=This script loads each image of the File List Window
  10. 04=into ImageFX and allows you to skew the image in the
  11. 05=Main buffer and also to choose what color to fill in
  12. 06=the background around where the image has been skewed.
  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 = -90
  25.     NumB = 90
  26.     NumC = 10
  27.     RequestSlider '"Enter Amount To Shear!"' NumA NumB NumC
  28.     AnswerA = Result
  29.     NumA = 0
  30.     NumB = 255
  31.     NumC = 0
  32.     RequestSlider '"Enter Red Value For Background!"' NumA NumB NumC
  33.     Answer = Result
  34.     RequestSlider '"Enter Green Value For Background!"' NumA NumB NumC
  35.     Answer2 = Result
  36.     RequestSlider '"Enter Blue Value For Background!"' NumA NumB NumC
  37.     Answer3 = Result
  38.     call open TempFile,"Ram:CT-IFGSR",W
  39.     call writeln TempFile,AnswerA
  40.     call writeln TempFile,Answer
  41.     call writeln TempFile,Answer2
  42.     call writeln TempFile,Answer3
  43.     call close TempFile
  44.     end
  45. else do
  46.     call open TempFile,"Ram:CT-IFGSR",R
  47.     line = readln(TempFile)
  48.     parse var line AnswerA
  49.     line = readln(TempFile)
  50.     parse var line Answer
  51.     line = readln(TempFile)
  52.     parse var line Answer2
  53.     line = readln(TempFile)
  54.     parse var line Answer3
  55.     call close TempFile
  56.     end
  57.  
  58. Num = AnswerA
  59. if Num > 86 then Num = 86
  60. if Num < -86 then Num = -86
  61. Hook Shear Num Answer Answer2 Answer3
  62.  
  63. exit
  64.