Bennu Game Development

English Forums => Suggestions => Topic started by: Sandman on November 17, 2008, 09:22:24 PM

Title: rgb()
Post by: Sandman on November 17, 2008, 09:22:24 PM
I'd like functions that return a colorcode for a specific depth.

For example, I have an 8-bit graphic in a 16-bit environment. Now I cannot make use of rgb() for this graphic, because the returned colorcodes are for 16-bit.

Possible suggestions:

Personally I like the second one much better than the first one, as it is easier to use it with graphics with a variable bitdepth (depending on other factors).