[pstricks] thicklines with hatch

mathias legrand legrand.mathias at gmail.com
Wed Oct 13 05:59:20 CEST 2010


> I had a look at doubleline. Seems like it is done by drawing two lines
> of different with above each other.
> What one could do is something like
> - draw the path using \pscustom
> - approximate the current path with flattenpath to a sequence of
> straight lines
> - convert with upath to a procedure that contains all constructing
> operations:
>
>
> 0 0 moveto
> 100 100 lineto
> % flattenpath not needed
> false upath
> {0.0 -0.0 100.000427 100.000427 setbbox 0.0 -0.0 moveto 100.000427
> 100.000427 lineto}
>
> After applying flattenpath, the userpath should contain only a setbbox
> at the beginning, lineto or moveto operations, and possibly a closepath
> at the end. Then e.g. by redefining lineto and moveto locally in
> combination with Manuels psthick it might be possible to create thick
> lines from arbitrary paths which can be filled. (Possibly there is an
> easier way to extract the coordinates from the current path)

Thanks Christoph, I'll give it a try. Does not look straighforward though.


More information about the PSTricks mailing list