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); } }
private HSLValues GetHSL() { return(ColorConvert.RGBtoHSL(rgb)); }