Class ColorExtensions
Inheritance
ColorExtensions
Assembly: SlipeServer.Server.dll
Syntax
public static class ColorExtensions
Methods
|
Edit this page
View Source
ToColorCode(Color)
Returns the HTML color code for a certain color, for example #ff0000 for red
Declaration
public static string ToColorCode(this Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
|
Edit this page
View Source
ToColorCode(Color?)
Returns the HTML color code for a certain color, for example #ff0000 for red
Declaration
public static string ToColorCode(this Color? color)
Parameters
Type |
Name |
Description |
Color? |
color |
|
Returns
|
Edit this page
View Source
ToLuaColor(Color)
Returns the retrieves the hex number of a specified color, useful for the dx functions. Equivalent of lua tocolor function
Declaration
public static uint ToLuaColor(this Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns