home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Exec 3
/
CD_Magazyn_EXEC_nr_3.iso
/
Recent
/
biz
/
haage
/
ArtEffect4Demo.lha
/
ArtEffect4-Demo
/
Rexx
/
lines.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-05-23
|
1KB
|
41 lines
/*
Example for line, new and error handling
*/
address "ArtEffect"
options results
/* apply to current picture */
line 0 20 320 20 pt pen mode color str 100
line 0 40 320 40 pt pen mode lighten str 100
line 0 60 320 60 pt pen mode hue str 100
line 0 80 320 80 pt pen mode saturation str 100
line 0 100 320 100 pt pen mode huesat str 100
line 0 120 320 20 pt brush mode color str 100
line 0 140 320 40 pt brush mode lighten str 100
line 0 160 320 60 pt brush mode hue str 100
line 0 180 320 80 pt brush mode saturation str 100
line 0 200 320 100 pt brush mode huesat str 100
/* open new picture */
new w 320 h 220 name "Test"
line 0 20 320 20 pt pen mode color str 100
line 0 40 320 40 pt pen mode lighten str 100
line 0 60 320 60 pt pen mode hue str 100
line 0 80 320 80 pt pen mode sat str 100
say rc2 /* SAT was not possible, this prints out the error */
line 0 80 320 80 pt pen mode saturation str 100
line 0 100 320 100 pt pen mode huesat str 100
line 0 120 320 20 pt brush mode color str 100
line 0 140 320 40 pt brush mode lighten str 100
line 0 160 320 60 pt brush mode hue str 100
line 0 180 320 80 pt brush mode sat str 100
say rc2 /* SAT was not possible, this prints out the error */
line 0 180 320 80 pt brush mode saturation str 100
line 0 200 320 100 pt brush mode huesat str 100