Class Colors
Inheritance
System.Object
Colors
Namespace: PnP.Framework.Utilities.Themes.Palettes
Assembly: PnP.Framework.dll
Syntax
public static class Colors : object
Fields
MAX_COLOR_RGBA
Declaration
public const int MAX_COLOR_RGBA = null
Field Value
System.Int32
|
Methods
cssColor(String)
GetColorFromRGBA(IRGB, Int32)
Declaration
public static IColor GetColorFromRGBA(IRGB c, int a)
Parameters
IRGB
c
|
System.Int32
a
|
Returns
IColor
|
getColorFromString(String)
Declaration
public static IColor getColorFromString(string inputColor)
Parameters
System.String
inputColor
|
Returns
IColor
|
hsl2hsv(Single, Single, Single)
Declaration
public static IHSV hsl2hsv(float h, float s, float l)
Parameters
System.Single
h
|
System.Single
s
|
System.Single
l
|
Returns
IHSV
|
hsl2rgb(Int32, Int32, Int32)
Declaration
public static IRGB hsl2rgb(int h, int s, int l)
Parameters
System.Int32
h
|
System.Int32
s
|
System.Int32
l
|
Returns
IRGB
|
hsv2hex(Single, Single, Single)
Declaration
public static string hsv2hex(float h, float s, float v)
Parameters
System.Single
h
|
System.Single
s
|
System.Single
v
|
Returns
System.String
|
hsv2hsl(Single, Single, Single)
Declaration
public static IHSL hsv2hsl(float h, float s, float v)
Parameters
System.Single
h
|
System.Single
s
|
System.Single
v
|
Returns
IHSL
|
hsv2rgb(Single, Single, Single)
Declaration
public static IRGB hsv2rgb(float h, float s, float v)
Parameters
System.Single
h
|
System.Single
s
|
System.Single
v
|
Returns
IRGB
|
numberToPaddedHex(Int32)
Declaration
public static string numberToPaddedHex(int num)
Parameters
System.Int32
num
|
Returns
System.String
|
rgb2hex(Int32, Int32, Int32)
Declaration
public static string rgb2hex(int r, int g, int b)
Parameters
System.Int32
r
|
System.Int32
g
|
System.Int32
b
|
Returns
System.String
|
rgb2hsv(Int32, Int32, Int32)
Declaration
public static IHSV rgb2hsv(int r, int g, int b)
Parameters
System.Int32
r
|
System.Int32
g
|
System.Int32
b
|
Returns
IHSV
|