Can we include a constructor on gfx::Color to easily create RGBA colors from integer tuples instead of by bitmasks?
brianThu 11 Feb 2010
Excellent idea now that we don't have bitwise operators.
I pushed a change with two new factories:
**
** Make a new instance with the ARGB individual
** components as integers between 0 and 255.
**
static Color makeArgb(Int a, Int r, Int g, Int b)
**
** Make a new instance with the RGB individual
** components as integers between 0 and 255.
**
static Color makeRgb(Int r, Int g, Int b)
tactics Wed 10 Feb 2010
Can we include a constructor on gfx::Color to easily create RGBA colors from integer tuples instead of by bitmasks?
brian Thu 11 Feb 2010
Excellent idea now that we don't have bitwise operators.
I pushed a change with two new factories:
changeset
tactics Thu 11 Feb 2010
Awesome :)