LogViewer.Utilities.HlsColor.Lighten C# (CSharp) Method

Lighten() public method

Lightens the colour by the specified amount by modifying the luminance (for example, 0.2 would lighten the colour by 20%)
public Lighten ( float percent ) : void
percent float
return void
        public void Lighten(float percent)
        {
            luminance *= (1.0f + percent);
            if (luminance > 1.0f)
            {
                luminance = 1.0f;
            }
            ToRGB();
        }