accessing single value in a color variable

edited January 2016 in Programming Questions

Hello! I would like to know if it's possible to access separately the values r,g and b of a color() variable. For instance, let's say I have this

    color c1 = color(255,255,0);

and I want to be able to modify the R value of this variable without having to rewrite it (then NOT something like c1 = color(100,255,0)).

Any idea?

Thank you p.

Sign In or Register to comment.