void ColorPalette::fillDefaultHSVPalette(double saturation, double value) { bg = Color(0,0,0); // black bg C.clear(); // Default palette filled with [0,320] hue values for(int hue=0; hue<320; hue++){ Color col = fromHSV((double)hue/360.0, saturation, value); C.push_back(col); } }
ColorRGB ColorRGB::rainbowColorMap(Real hue) { return fromHSV(Vector3(hue, 1, 1)); }