groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] [groff] filled polygons in gpic


From: Tadziu Hoffmann
Subject: Re: [Groff] [groff] filled polygons in gpic
Date: Wed, 14 Mar 2012 01:03:43 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

> > I just need triangles [...]

> I have made filled triangles in gpic by a simple kludge of
> automating the removal of one corner of a filled rectangle.
> [...]

How about something crude as

  .PS
  define triangle { box invis "$4\v'$3'\D'P $1 -$2 $1 $2'" }
  triangle(1c,1.8c,1c,\M[green]) "Hello" ""; arrow; box "world"
  .PE

or maybe even

  .PS
  define triangle { box invis "$4\v'$3'\D'P $1 -$2 $1 $2'" $5 "" }
  triangle(1c,1.8c,1c,\M[green],"Hello"); arrow; box "world"
  .PE

?

It doesn't follow the syntax of other objects and it's missing
configurability analogous to boxwid and boxht and arrows don't
extend to the edges etc., but it's still kinda workable...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]