toRGB

  1. Format toRGB(HSV!Precision input)
  2. Format toRGB(HSVA!Precision input)
    @safe
    Format
    toRGB
    (
    Format = RGB888
    Precision = double
    )
    (
    HSVA!Precision input
    )
    if ()

Examples

with(HSVA!double(0, 0, 0.5, 0.0).toRGB!RGBA8888) {
	assert(red == 127);
	assert(green == 127);
	assert(blue == 127);
	assert(alpha == 0);
}
with(HSVA!double(0, 0, 0.5, 1.0).toRGB!RGBA8888) {
	assert(red == 127);
	assert(green == 127);
	assert(blue == 127);
	assert(alpha == 255);
}
with(HSVA!double(0, 0, 0.5, 1.0).toRGB!RGB888) {
	assert(red == 127);
	assert(green == 127);
	assert(blue == 127);
}

Meta