home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ACS 1998 #4
/
amigaacscoverdisc1998-041998.iso
/
utilities
/
commercialdemos
/
arteffect2.0
/
rexx
/
polygon.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-04
|
776b
|
36 lines
/*
* Polygons
*
* ARexx Example for: new, palette, polygon
* Author: A. Pratsch
* This script is Public Domain
*/
address "ArtEffect"
new w 400 h 400 "Polygons"
/*do forever*/
/*
cr=random(0,255);
cg=random(0,255);
cb=random(0,255);
'palette r 'cr' g 'cr' b 'cb' quiet'
*/
x1=random(1,399)
y1=random(1,399)
x2=random(1,399)
y2=random(1,399)
x3=random(1,399)
y3=random(1,399)
x4=random(1,399)
y4=random(1,399)
'rectangle pt fill mode gradient strength 80 'x1' 'y1' 'x3' 'y3
'polygon pt fill mode color strength 50 'x1' 'y1' 'x2' 'y2' 'x3' 'y3' 'x4' 'y4
'polygon pt airbrush mode color strength 100 'x1' 'y1' 'x2' 'y2' 'x3' 'y3' 'x4' 'y4
'polygon pt cut mode color strength 50 'x1' 'y1' 'x2' 'y2' 'x3' 'y3' 'x4' 'y4
changebrush sw 10 sh 10
/*end*/