C# Class Signum.Utilities.ColorExtensions

Mostra file Open project: signumsoftware/framework

Public Methods

Method Description
FromHsv ( double h, double S, double V ) : Color
Interpolate ( this from, float ratio, Color to ) : Color
ToHtml ( this color ) : string
ToHtmlColor ( int value ) : string
TryToHtml ( this color ) : string

Private Methods

Method Description
Clamp ( int i ) : int

Method Details

FromHsv() public static method

public static FromHsv ( double h, double S, double V ) : Color
h double
S double
V double
return Color

Interpolate() public static method

public static Interpolate ( this from, float ratio, Color to ) : Color
from this
ratio float
to Color
return Color

ToHtml() public static method

public static ToHtml ( this color ) : string
color this
return string

ToHtmlColor() public static method

public static ToHtmlColor ( int value ) : string
value int
return string

TryToHtml() public static method

public static TryToHtml ( this color ) : string
color this
return string