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


Groups > comp.lang.postscript > #488

Re: Abuse clipping to avoid intersecting lines?

From Olle <olavi.sakari@gmail.com>
Newsgroups comp.lang.postscript
Subject Re: Abuse clipping to avoid intersecting lines?
Date 2011-12-13 18:34 -0800
Organization http://groups.google.com
Message-ID <6f6c1eba-cd34-49c4-8a2d-a048da0572ec@w3g2000vbw.googlegroups.com> (permalink)
References <b2a4fef9-b098-4398-a65f-161a3a08ed8e@b32g2000yqn.googlegroups.com> <49478c20-84ed-4c7b-a660-bfec74805f1f@p9g2000vbb.googlegroups.com> <e1ca6743-597e-4eff-982f-e2f27eba0510@z12g2000yqm.googlegroups.com>

Show all headers | View raw


On Dec 13, 2:18 pm, Olle <olavi.sak...@gmail.com> wrote:
> On Nov 30, 7:42 pm, luser- -droog <mijo...@yahoo.com> wrote:
>
>
>
>
>
> > On Nov 30, 8:29 pm, luser- -droog <mijo...@yahoo.com> wrote:
>
> > > I'm trying to do some music typesetting and I need to draw
> > > lots of vertical lines (note-stem extensions) up to a roughly-
> > > horizontal line (the cross-beam joining notes into a figure).
>
> > > I think I can use the clipping path to avoid calculating all those
> > > line-intersections by: scaling up the ctm really big, drawing the
> > > horizontal, eoclip to cut the clipping region in half (in a trapezoid
> > > shape), and then draw extra-long verticals with auto-clipped
> > > edges.
>
> > > So the question is: Is there a standard orientation for the clipping
> > > path ([Counter]Clockwise)? Knowing this, I could choose which
> > > half of the clip-region I want by drawing the line left-right vs.
> > > right-left, right?
>
> > Wouldn't it be awesome if there were a wedge-tip pen with ink on one
> > half and white-out on the other?
>
> Not sure if I understand this correctly, but would something like this
> do?
>
> <your (double) line width><your path> gsave 1 setgray stroke grestore
> fill
>
> Thanks,
>
> Olle- Hide quoted text -
>
> - Show quoted text -

The previous was some kind of answer to the wedge-tip pen question.

But how about something like this:
- stroke your nearly horizontal
- gsave
- create a clip path starting, say, from the end coordinates of the
stroke, going on far enough right, far enough down, far enough left,
up to the y-coordinate of the beginning of the stroke, to the begin
coordinates, closepath (switching down to up and vice versa if your
notes are upside down)
- do your notes
- grestore
?

Thanks,

Olle

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


Thread

Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-11-30 18:29 -0800
  Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-11-30 18:42 -0800
    Re: Abuse clipping to avoid intersecting lines? Olle <olavi.sakari@gmail.com> - 2011-12-13 13:18 -0800
      Re: Abuse clipping to avoid intersecting lines? Olle <olavi.sakari@gmail.com> - 2011-12-13 18:34 -0800
        Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-13 21:48 -0800
          Re: Abuse clipping to avoid intersecting lines? tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2011-12-14 12:33 -0500
            Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-14 19:04 -0800
              Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-14 20:14 -0800
                Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-14 20:31 -0800
                Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-15 01:50 -0800
                Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-15 10:21 -0800
        Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-15 22:24 -0800
  Re: Abuse clipping to avoid intersecting lines? luser- -droog <mijoryx@yahoo.com> - 2011-12-02 11:35 -0800

csiph-web