Color.fromIntegers

Like the constructor, but this makes sure they are in range before casting. If they are out of range, it saturates: anything less than zero becomes zero and anything greater than 255 becomes 255.

struct Color
@safe nothrow pure @nogc static
fromIntegers
(
int red
,
int green
,
int blue
,
int alpha = 255
)
Suggestion Box / Bug Report