示例#1
0
        private void RegenerateTexture()
        {
            Color currentColor = colorPicker.ColorRGB;

            //Currently only supports Saturation x Value
            if (fieldX == Field.HSV_Saturation && fieldY == Field.HSV_Value)
            {
                HSLValues hsla = ColorConvert.RGBtoHSL(currentColor);
                sliderBackground.texture = TextureGenerator.GenerateHSVBox(hsla.h);
            }
        }
示例#2
0
 private HSLValues GetHSL()
 {
     return(ColorConvert.RGBtoHSL(rgb));
 }