Tag: rgb

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(&quot;a&quot;);
    }
    if (0f > h || ...
Read post