[cairo] Changing color mid-stroke
Travis Griggs
tgriggs at cincom.com
Wed Jan 14 00:00:34 PST 2009
On Jan 13, 2009, at 4:40 PM, AngryZealot wrote:
> Hi all,
>
> I'm wondering if there's a way to change color in the middle of a
> cairo_line_to operation, or at least a workable way to fake the
> result. For an example of what I'd like to produce, see the picture
> here: http://i208.photobucket.com/albums/bb305/AngryZealot/miter.jpg
>
> Basically I need a way to split the joining piece between two
> arbitrary line segments (ie, the joining angle is not fixed). I
> realize this is somewhat unusual (neither Inkscape nor Adobe
> Illustrator can do it without outlining the stroke). If somebody more
> familiar with cairo has any ideas, it would be much appreciated.
Depends on how much work you want to go through I guess. You *could*
define a gradient, that shifted suddenly from blue to black, and then
stroke with that as your source.
--
Travis Griggs
Objologist
"I think that we should be men first, and subjects afterward." - Henry
David Thoreau
More information about the cairo
mailing list