Thanks Jan-Marek and everyone else who replied. The
suggestions have been really helpful. I'm making some
progress. But I didn't know I had to deal with
hue/saturation/intensity stuff for this.
I searched but couldn't find any documentation for
gtk_hsv_to_rgb()?? One website (pretty old one) said
Hello,
I have a pixbuf in a file which I have to change the
color of everytime I use it. Is it even possible to
change the background color of an image? I tried this:
image = gdk_pixbuf_new_from_file("picture.gif",
&error);
// convert GdkPixbuf to GtkWidget
widget = gtk_image_new_from_pixbuf (i
gt; [mailto:gtk-app-devel-list-
> > [EMAIL PROTECTED] On Behalf Of Lola Smith
> > Sent: Tuesday, June 21, 2005 11:10 AM
> > To: gtk-app-devel-list@gnome.org
> > Subject: Re: 100 Different Colors
> >
> > Jan-Marek, thanks for your response.
> >
&g
Jan-Marek, thanks for your response.
I tried this:
>for (i=0; i<100; i++) {
> c.pixel = 0;
> c.red = G_MAXUINT16;
> c.blue = (i % 33 / 99) * G_MAXUINT16;
> c.green = i/99 * G_MAXUINT16;
> gdk_gc_set_rgb_fg_color( gc, &c );
> gdk_draw_rectangle (widget->window, gc, TRUE,
i*15,
>
Hello,
I need to create 100 little squares and each of them
has to be a different color. They can't just be a
random color: they have to follow the colors of the
standard color spectrum/palette. For example, the
first one is dark blue, then lighter blue, ... ,
green, ... , red.
I am new to GTK,