in reply to shading boxes using PostScript::Simple
use PostScript::Simple; # create a new PostScript object $p = new PostScript::Simple(papersize => "A4", colour => 1, eps => 0, units => "in"); # create a new page $p->newpage; #select a shade of grey $p->setcolour("grey20"); # draw a filled square with lower left point at (20,20) $p->polygon( {offset => [10,10], filled => 1}, 10,10, 10,20, 20,20, 20,10, 10,10); $p->output("file.ps");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: shading boxes using PostScript::Simple
by roboticus (Chancellor) on Oct 07, 2011 at 10:10 UTC | |
by spider122 (Initiate) on Oct 07, 2011 at 13:44 UTC |