in reply to Draw a line

You could do it directly in postscript, and then convert it to whatever graphic format you wanted.
%! %% Example of simple line drawing /inch {72 mul} def % Define an inch->point conversion function newpath % Start a new path 1 inch 1 inch moveto % Set the current point an inch in and up 2 inch 1 inch lineto % Create an inch long line segment to the righ +t stroke % Draw the line showpage % Paint and eject the page

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: Draw a line
by mawe (Hermit) on Jun 03, 2004 at 16:33 UTC
    Nice idea!
    There is a CPAN-module which makes it easy to create a postscript (I never used it, but the description says it is simple :-))