C# Class HAMMER.Pants.HSLColor

Mostrar archivo Open project: Code52/HAMMER Class Usage Examples

Public Methods

Method Description
HSLColor ( ) : System
HSLColor ( Color color ) : System
HSLColor ( double hue, double saturation, double luminosity ) : System
HSLColor ( int red, int green, int blue ) : System
HSLColor ( string hex ) : System
SetRGB ( int red, int green, int blue ) : void
ToHex ( ) : string
ToRGBString ( ) : string
ToString ( ) : string

Private Methods

Method Description
CheckRange ( double value ) : double
GetColorComponent ( double temp1, double temp2, double temp3 ) : double
GetTemp2 ( HSLColor hslColor ) : double
MoveIntoRange ( double temp3 ) : double

Method Details

HSLColor() public method

public HSLColor ( ) : System
return System

HSLColor() public method

public HSLColor ( Color color ) : System
color Color
return System

HSLColor() public method

public HSLColor ( double hue, double saturation, double luminosity ) : System
hue double
saturation double
luminosity double
return System

HSLColor() public method

public HSLColor ( int red, int green, int blue ) : System
red int
green int
blue int
return System

HSLColor() public method

public HSLColor ( string hex ) : System
hex string
return System

SetRGB() public method

public SetRGB ( int red, int green, int blue ) : void
red int
green int
blue int
return void

ToHex() public method

public ToHex ( ) : string
return string

ToRGBString() public method

public ToRGBString ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string