Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2009

Re: Constant line thickness after scale

From Mark Carroll <mtbc@bcs.org>
Newsgroups comp.lang.postscript
Subject Re: Constant line thickness after scale
Date 2014-09-03 19:34 +0100
Organization none
Message-ID <87tx4o5z9n.fsf@ixod.org> (permalink)
References <871trs1tlw.fsf@Equus.decebal.nl>

Show all headers | View raw


Cecil Westerhof <Cecil@decebal.nl> writes:

> With the following code I can draw an ellipse:
>     25  dup  translate
>      2  setlinewidth
>      4  1  scale
>      0  dup  4  0  360  arc   closepath   stroke
>     showpage
>
> But at east and west the line thickness is bigger as at north and
> south. Is it possible to draw an ellipse which has a constant line
> thickness?

You can get it pretty close to an ellipse, with even line thickness, not
by using scale, but by using curveto. Unfortunately, my usual function
for doing this isn't handy on this computer, but
http://www.tinaja.com/glib/ellipse4.pdf looks well-conceived. Searching
for Bézier postscript ellipse might find you some further good stuff.

-- Mark

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Constant line thickness after scale Cecil Westerhof <Cecil@decebal.nl> - 2014-09-03 19:50 +0200
  Re: Constant line thickness after scale abeddie <abeddie@hotmail.com> - 2014-09-03 11:26 -0700
    Re: Constant line thickness after scale Mark Carroll <mtbc@bcs.org> - 2014-09-03 19:35 +0100
    Re: Constant line thickness after scale Cecil Westerhof <Cecil@decebal.nl> - 2014-09-04 10:42 +0200
      Re: Constant line thickness after scale ken <ken@spamcop.net> - 2014-09-04 10:16 +0100
  Re: Constant line thickness after scale Mark Carroll <mtbc@bcs.org> - 2014-09-03 19:34 +0100
  Re: Constant line thickness after scale tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2014-09-03 20:46 -0400

csiph-web