Метод | Описание | |
---|---|---|
add ( this color, Color second ) : Color | ||
grayscale ( this color ) : Color | ||
hexToByte ( char c ) : byte | ||
hexToColor ( int hex ) : Color | ||
hexToColor ( string hex ) : Color | ||
invert ( this color ) : Color | ||
lerp ( Color from, Color to, float t ) : Color |
linearly interpolates Color from - to
|
|
lerp ( Color &from, Color &to, Color &result, float t ) : void |
linearly interpolates Color from - to
|
|
multiply ( this self, Color second ) : Color | ||
subtract ( this color, Color second ) : Color |
first - second
|
public static add ( this color, Color second ) : Color | ||
color | this | |
second | Color | |
Результат | Color |
static public grayscale ( this color ) : Color | ||
color | this | |
Результат | Color |
static public hexToByte ( char c ) : byte | ||
c | char | |
Результат | byte |
public static hexToColor ( int hex ) : Color | ||
hex | int | |
Результат | Color |
static public hexToColor ( string hex ) : Color | ||
hex | string | |
Результат | Color |
static public invert ( this color ) : Color | ||
color | this | |
Результат | Color |
public static lerp ( Color from, Color to, float t ) : Color | ||
from | Color | From. |
to | Color | To. |
t | float | T. |
Результат | Color |
public static lerp ( Color &from, Color &to, Color &result, float t ) : void | ||
from | Color | From. |
to | Color | To. |
result | Color | |
t | float | T. |
Результат | void |
public static multiply ( this self, Color second ) : Color | ||
self | this | |
second | Color | |
Результат | Color |
public static subtract ( this color, Color second ) : Color | ||
color | this | |
second | Color | Second. |
Результат | Color |