home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
graphics
/
tsmorph.lha
/
TSMorph
/
Rexx
/
PixelWarp.TSM
< prev
next >
Wrap
Text File
|
1993-06-13
|
863b
|
40 lines
/* example Prescript script file for TSMorph */
/* This example is a simple Warp which Pixelates an image */
/* $VER: PixelWarp_TSM 2.0 (13.6.93)
*/
parse arg Base
Frame = 0
TotalFrames = 1
Single = 2
Movement = 3
Red1 = 4
Green1 = 5
Blue1 = 6
Red2 = 7
Green2 = 8
Blue2 = 9
Produce = 10
RPlus = 11
GPlus = 12
BPlus = 13
RMinus = 14
GMinus = 15
BMinus = 16
DX = 17
DY = 18
Start = 19
call StoreValue(Base,DX,TRUNC(GetValue(Base,Frame)));
call StoreValue(Base,DY,TRUNC(GetValue(Base,Frame)));
exit
GetValue:Procedure
Parse arg XBase, XAdd
return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),4))
StoreValue:Procedure
Parse arg XBase, XAdd, XVal
call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),RIGHT(D2C(XVal),4,D2C(0)),4)
return