home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ACS 1998 #4
/
amigaacscoverdisc1998-041998.iso
/
utilities
/
commercialdemos
/
arteffect2.0
/
rexx
/
ellipse.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-11
|
932b
|
46 lines
/*
demo for new, createbrush, brushattr, ellipse, circle
*/
address "ArtEffect"
options results
/* open new picture */
new w 320 h 220 name "Test"
createbrush rec size 20 prop 50 angle 45
entries = ""
do i=1 to 128
value = i*i/64-1
entries = entries || value
if i~=128 then entries = entries || ','
end
brushattr intensity entries
if rc~=0 then say rc2
entries = ""
do i=1 to 128
value = 127+i*i*i/16384
entries = entries || value
if i~=128 then entries = entries || ','
end
brushattr density entries
if rc~=0 then say rc2
entries = ""
do i=1 to 128
entries = entries || 8
if i~=128 then entries = entries || ','
end
brushattr roughness entries
if rc~=0 then say rc2
ellipse 160 100 50 25 pt fill mode color str 50
ellipse 160 110 50 25 pt airbrush mode color str 100
ellipse 160 120 15 25 pt cut
circle 160 100 50 pt fill mode color str 100
circle 160 120 50 pt airbrush mode color str 50
circle 160 140 50 pt cut