C# Class SpaceClaim.AddInLibrary.HSBColor

Provides Round-trip conversion from RGB to HSB and back
Mostra file Open project: bcourter/SpaceClaim-AddIns Class Usage Examples

Public Methods

Method Description
FromColor ( Color color ) : HSBColor
FromHSB ( HSBColor hsbColor ) : Color
HSBColor ( Color color ) : System
HSBColor ( float h, float s, float b ) : System
HSBColor ( int a, float h, float s, float b ) : System
ShiftBrightness ( Color c, float brightnessDelta ) : Color
ShiftHue ( Color c, float hueDelta ) : Color
ShiftSaturation ( Color c, float saturationDelta ) : Color

Method Details

FromColor() public static method

public static FromColor ( Color color ) : HSBColor
color Color
return HSBColor

FromHSB() public static method

public static FromHSB ( HSBColor hsbColor ) : Color
hsbColor HSBColor
return Color

HSBColor() public method

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

HSBColor() public method

public HSBColor ( float h, float s, float b ) : System
h float
s float
b float
return System

HSBColor() public method

public HSBColor ( int a, float h, float s, float b ) : System
a int
h float
s float
b float
return System

ShiftBrightness() public static method

public static ShiftBrightness ( Color c, float brightnessDelta ) : Color
c Color
brightnessDelta float
return Color

ShiftHue() public static method

public static ShiftHue ( Color c, float hueDelta ) : Color
c Color
hueDelta float
return Color

ShiftSaturation() public static method

public static ShiftSaturation ( Color c, float saturationDelta ) : Color
c Color
saturationDelta float
return Color