MainComputersProgrammingLanguages › PostScript::Simple

PostScript::Simple

Edit Page
Report
Scan day: 03 March 2014 UTC
-58
Virus safety - good
Description: CPAN module for generating PostScript for display and printing. Supports simple vector graphics.
PostScript::Simple - search.cpan.org Module Version: 0.07   PostScript::Simple - Produce PostScript files from Perl 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; # draw some lines and other shapes $p->line(1,1, 1,4); $p->linextend(2,4); $p->box(1.5,1, 2,3.5); $p->circle(2,2, 1); $p->setlinewidth( 0.01 ); $p->curve(1,5, 1,7, 3,7, 3,5); $p->curvextend(3,3, 5,3, 5,5); # draw a rotated polygon in a different colour $p->setcolour(0,100,200); $p->polygon({rotate=>45}, 1,1, 1,2, 2,2, 2,1, 1,1); # add some text in red $p->setcolour("red"); $p->setfont("Times-Roman", 20); $p->text(1,1, "Hello"); # write the output to a file $p->output("file.ps");
Size: 977 chars

Contact Information

Email:
Phone&Fax:
Address:
Extended:

WEBSITE Info

Page title:PostScript::Simple - search.cpan.org
Keywords:
Description:
IP-address:199.15.176.161