gnome canvas

I'm using a GnomeCanvas to draw a gradient, and the only way I see to do
that is to draw a series of lines with colors gradually changing from
the start color to the finish color. Is there a better way to do this,
and if not, is there a way to set an rgb color value for a line, or
better yet, an rgba value? I'm using an anti-aliased GnomeCanvas.

            gnome_canvas_root( GNOME_CANVAS(canvas) ),
            "points",     points,
            "fill_color", (idx % 2 == 0 ? "red" : "green"),
            "width_units", 1.0,
            NULL );

I'd like to change the flipping between red/green to start at red, and
finish at green. 


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