graphics code executes with ghostscript, exhibits same bugs.

65 views
Skip to first unread message

luserdroog

unread,
Nov 10, 2013, 5:53:30 AM11/10/13
to xpost-...@googlegroups.com
I've gotten the graphics code to run on ghostscript, and it has the same problem with
 
  clippath fill
 
. Instead of painting the image black, it sets 1 pixel from every other line.
 
On the plus side, stroking lines works without setting `0 linewidth` which simply crashes xpost. :) :( :?
 

luserdroog

unread,
Nov 11, 2013, 4:00:15 PM11/11/13
to xpost-...@googlegroups.com
Fixed `clippath fill`. It was using the wrong endpoints for the scanlines so the right edge never intersected.
 
To try it with xpost, do:
 
  loadgraphics
  clippath fill
  showpage
 
(set your terminal really big, because showpage prints a 50x50 pgm file to stdout.)
 

luserdroog

unread,
Nov 11, 2013, 4:04:06 PM11/11/13
to xpost-...@googlegroups.com
To try the graphics code with ghostscript, try
 
  $ gsnd graphics.ps
  GS> initgraphics
  GS> clippath fill showpage
 
 

luserdroog

unread,
Nov 20, 2013, 3:50:26 PM11/20/13
to xpost-...@googlegroups.com
Running the graphics under ghostscript was a useful early debugging tactic. It no longer does this "out of the box" as xpost's new device modules get debugged and tuned.
 

luserdroog

unread,
Mar 22, 2014, 4:10:19 AM3/22/14
to xpost-...@googlegroups.com

luserdroog

unread,
Jul 26, 2014, 3:55:06 AM7/26/14
to
There is some potential use of this "portable" graphics code,
in a proposed code-golf challenge.
 
 
It needs a bit of secretarial work.
Reply all
Reply to author
Forward
0 new messages