🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #413

Bug in fill?

#413
From: Ciaran McHale
Date: Tue, 07 Apr 1992 21:53
35 lines
1401 bytes
The following program draws a "donut" on the page, i.e., two circles
with the space between them filled in. It does this by drawing one
circle with "arc" and the other with "arcn".

Using Ghostview (sorry, don't know which version number) I get a donut
with a hole, just as I expected. On a Laserwriter II all I get is a
solid filled circle (a donut with no hole).

----cut here----
%!
%%EndComments

/InRadius 20 def
/OutRadius 40 def

300 600 translate

newpath
0 0 OutRadius 0 360 arc	% outer circle
InRadius 0 moveto	% put the current point on the inner circle
0 0 InRadius 0 360 arcn	% draw inner circle in the *opposite* direction
fill			% fill to get a donut

showpage
----cut here----

Can anybody provide any insight into why I am getting different output
on Ghostview compared to a Laserwriter?


Ciaran.
-- 
Ciaran McHale                                                            ----
Department of Computer Science, Trinity College, Dublin 2, Ireland.      \bi/
Telephone: +353-1-7021539  FAX: +353-1-772204  email: cjmchale@cs.tcd.ie  \/
Technical Details
Message-ID: <1992Apr7.215306.11344@cs.tcd.ie>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!ieunet!tcdcs!bofin!cjmchale

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!ieunet!tcdcs!bofin!cjmchale
From: cjmchale@cs.tcd.ie (Ciaran McHale)
Newsgroups: comp.lang.postscript
Subject: Bug in fill?
Message-ID: <1992Apr7.215306.11344@cs.tcd.ie>
Date: 7 Apr 92 21:53:06 GMT
Organization: DSG, Dept. of Comp. Sci., Trinity College, Dublin.
Lines: 35