[Gambas-user] RGB components from color

Marco Colnaghi marco.colnaghi at ...69...
Mon Oct 16 10:48:26 CEST 2006


I'm using gambas 1.0.15 (Debian Etch).

I asked info about getting RGB components from a color (integer)

I had and hint, but I still have problems:
> > Is there a function giving back the red (or green or blue) component of a
> > color? (equivalent to qRed in QT)
>
> Color[Value].Red
> Color[Value].Green
> Color[Value].Blue
>

this does not work in my gambas (Error: Color is not an array)

Can please someone help me?
A simple line of code would be very helpful.

Thanks in advance,
Marco.




More information about the User mailing list