gnome canvas
- From: Jacob Gladish <gladish spinnakernet com>
- To: gnome-devel-list gnome org
- Subject: gnome canvas
- Date: 17 Sep 2003 10:49:18 -0400
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_item_new(
gnome_canvas_root( GNOME_CANVAS(canvas) ),
gnome_canvas_line_get_type(),
"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.
thanks
-jake
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]