GetHSL() public method

public GetHSL ( double &hue0To1, double &saturation0To1, double &lightness0To1 ) : void
hue0To1 double
saturation0To1 double
lightness0To1 double
return void
        public static ColorRGBAf AdjustLightness(ColorRGBAf original, double lightnessMultiplier)
        {
            double hue0To1;
            double saturation0To1;
            double lightness0To1;

            original.GetHSL(out hue0To1, out saturation0To1, out lightness0To1);
            lightness0To1 *= lightnessMultiplier;
            return(FromHSL(hue0To1, saturation0To1, lightness0To1));
        }
Beispiel #2
0
 public static ColorRGBAf AdjustLightness(ColorRGBAf original, double lightnessMultiplier)
 {
     double hue0To1;
     double saturation0To1;
     double lightness0To1;
     original.GetHSL(out hue0To1, out saturation0To1, out lightness0To1);
     lightness0To1 *= lightnessMultiplier;
     return FromHSL(hue0To1, saturation0To1, lightness0To1);
 }