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 void SetHSL(HSLValues hsl) { SetRGB(ColorConvert.HSLtoRGB(hsl)); }