Свойство | Тип | Описание | |
---|---|---|---|
ColorMappings | Color>.Dictionary |
Метод | Описание | |
---|---|---|
BlueOnly ( this color ) : Color |
Returns a new Color using only the Blue value of this color.
|
|
FromParser ( this color, string value, bool &keepR, bool &keepG, bool &keepB, bool &keepA, bool &useDefault ) : Color |
Gets a color in the format of SadConsole.ParseCommandRecolor.
|
|
GetBrightness ( this color ) : float | ||
GetHue ( this color ) : float | ||
GetLuma ( this color ) : float | ||
GetRandomColor ( this color, |
||
GetSaturation ( this color ) : float | ||
GreenOnly ( this color ) : Color |
Returns a new Color using only the Green value of this color.
|
|
LerpSteps ( this color, Color endingColor, int steps ) : Color[] | ||
RedOnly ( this color ) : Color |
Returns a new Color using only the Red value of this color.
|
|
SetHSL ( this color, float h, float s, float l ) : void | ||
ToInteger ( this color ) : uint | ||
ToParser ( this color ) : string |
Converts a color to the format used by SadConsole.ParseCommandRecolor command.
|
Метод | Описание | |
---|---|---|
Hue_2_RGB ( float v1, float v2, float vH ) : float |
public static BlueOnly ( this color ) : Color | ||
color | this | Object instance. |
Результат | Color |
public static FromParser ( this color, string value, bool &keepR, bool &keepG, bool &keepB, bool &keepA, bool &useDefault ) : Color | ||
color | this | |
value | string | |
keepR | bool | |
keepG | bool | |
keepB | bool | |
keepA | bool | |
useDefault | bool | |
Результат | Color |
public static GetBrightness ( this color ) : float | ||
color | this | |
Результат | float |
public static GetHue ( this color ) : float | ||
color | this | |
Результат | float |
public static GetLuma ( this color ) : float | ||
color | this | |
Результат | float |
public static GetRandomColor ( this color, |
||
color | this | |
random | ||
Результат | Color |
public static GetSaturation ( this color ) : float | ||
color | this | |
Результат | float |
public static GreenOnly ( this color ) : Color | ||
color | this | Object instance. |
Результат | Color |
public static LerpSteps ( this color, Color endingColor, int steps ) : Color[] | ||
color | this | |
endingColor | Color | |
steps | int | |
Результат | Color[] |
public static RedOnly ( this color ) : Color | ||
color | this | Object instance. |
Результат | Color |
public static SetHSL ( this color, float h, float s, float l ) : void | ||
color | this | |
h | float | |
s | float | |
l | float | |
Результат | void |
public static ToInteger ( this color ) : uint | ||
color | this | |
Результат | uint |
public static ToParser ( this color ) : string | ||
color | this | The color to convert. |
Результат | string |