Tag: hue
Making Color From Alpha, Hue, Saturation and Brightness
November 22, 2011 00:00
I find myself wanting to do this sometimes, so here's a bit of code (I'm sure I stole this code from somewhere else);
public static Color ColorFromAhsb(int a, float h, float s, float b) {
if (0 > a || 255 < a) {
throw new ArgumentOutOfRangeException("a");
}
if (0f > h || ...
Read post