home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / gfx / edit / tsmorph / rexx / pixelmorph.tsm < prev    next >
Text File  |  1993-12-21  |  999b  |  40 lines

  1. /* example Prescript script file for TSMorph */
  2. /* This example is a simple Morph which Pixelates between two images */
  3. /* $VER: PixelMorph_TSM 2.0 (13.6.93)
  4.  */
  5. parse arg Base
  6. Frame       = 0
  7. TotalFrames = 1
  8. Single      = 2
  9. Movement    = 3
  10. Red1        = 4
  11. Green1      = 5
  12. Blue1       = 6
  13. Red2        = 7
  14. Green2      = 8
  15. Blue2       = 9
  16. Produce     = 10
  17. RPlus       = 11
  18. GPlus       = 12
  19. BPlus       = 13
  20. RMinus      = 14
  21. GMinus      = 15
  22. BMinus      = 16
  23. DX          = 17
  24. DY          = 18
  25. Start       = 19
  26.  
  27. call StoreValue(Base,DX,min(TRUNC(GetValue(Base,Frame)),TRUNC(GetValue(Base,TotalFrames)+1-GetValue(Base,Frame))));
  28. call StoreValue(Base,DY,min(TRUNC(GetValue(Base,Frame)),TRUNC(GetValue(Base,TotalFrames)+1-GetValue(Base,Frame))));
  29.  
  30. exit
  31.  
  32. GetValue:Procedure
  33.    Parse arg XBase, XAdd
  34.    return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),4))
  35.  
  36. StoreValue:Procedure
  37.    Parse arg XBase, XAdd, XVal
  38.    call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),RIGHT(D2C(XVal),4,D2C(0)),4)
  39.    return
  40.