Index > i.Mage > Example Scripts for i.Mage | |
---|---|
Author/Date | Example Scripts for i.Mage |
fret 21/06/2006 9:38am | As I'm working on various things in i.Mage's scripting language I'll post example scripts in here for people to try out:
This shows the new scripting command setfillrule in v1.06: create 230, 110, 32; rgb 255, 0, 0; for i=0; i<2; i++; { y = i * 60; newpath p; rect p, 0, y, 210, y + 27; font verdana, 30, ""; text p, 10, y + 40, "Some Text"; fillpath p; setfillrule p, nonzero; } Which looks like this: |
fret 23/06/2006 1:13am | After some more fixed code:
create 500, 200, 32; rgb 255, 255, 255; newpath p; rect p, 0, 0, 500, 200; fillpath p; newpath p; rect p, 0, 0, 500, 20; rect p, 0, 0, 20, 200; rect p, 480, 0, 500, 200; rect p, 0, 180, 500, 200; font Verdana, 120, Bold; text p, 60, 200, "Text"; setfillrule p, nonzero; rgb 222, 222, 222; fillpath p; blur 15; rgb 255, 255, 255; fillpath p; Looks like: |
Reply | |