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


Groups > comp.lang.postscript > #381

Re: Can you clear currentpoint without clearing the path?

From luser- -droog <mijoryx@yahoo.com>
Newsgroups comp.lang.postscript
Subject Re: Can you clear currentpoint without clearing the path?
Date 2011-10-06 00:33 -0700
Organization http://groups.google.com
Message-ID <ffdb86e5-a9ee-4e83-b7b7-22f8eb97e7f1@q25g2000vbx.googlegroups.com> (permalink)
References <44f6646d-c262-4d42-8544-1dfcbfc3ab5f@i9g2000yqe.googlegroups.com> <MPG.28f76617defbf13d989861@usenet.plus.net>

Show all headers | View raw


On Oct 6, 2:16 am, ken <k...@spamcop.net> wrote:
> In article <44f6646d-c262-4d42-8544-
> 1dfcbfc3a...@i9g2000yqe.googlegroups.com>, mijo...@yahoo.com says...
>
> > I found the source of those ghost lines. It's just as tlvp suggested.
> > Filling a series of arcs means each arc finds currentpoint is set to
> > the close of the previous arc.
>
> Anwswering the Subject:
>
> No, you can't 'clear' current point without 'clearing' the current path.
> The current point is the end of the current path. If there is no path
> then there is no current point, if there is a path then the current
> point is the end of the current path.
>
> You can shift the current point by doing a moveto, which is then added
> to the current path.
>
>                         Ken

Duh! Thanks! :)

Here's the "fixed" 2 black circles program.

%!

300 400 translate
-100 0 50 0 360 arc closepath
150 0 moveto
+100 0 50 0 360 arc closepath eofill

showpage

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


Thread

Can you clear currentpoint without clearing the path? luser- -droog <mijoryx@yahoo.com> - 2011-10-05 23:58 -0700
  Re: Can you clear currentpoint without clearing the path? ken <ken@spamcop.net> - 2011-10-06 08:16 +0100
    Re: Can you clear currentpoint without clearing the path? luser- -droog <mijoryx@yahoo.com> - 2011-10-06 00:33 -0700
  Re: Can you clear currentpoint without clearing the path? tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2011-10-06 19:07 -0400

csiph-web