hue_to_rgb
static float hue_to_rgb(float p, float q, float t);
result.red = uint8(hue_to_rgb(p, q, hue + 1./3) * 255);
result.green = uint8(hue_to_rgb(p, q, hue) * 255);
result.blue = uint8(hue_to_rgb(p, q, hue - 1./3) * 255);