Show / Hide Table of Contents

Class ColorExtensions

Inheritance
object
ColorExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Extensions
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
Type Description
string
| 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
Type Description
string
| 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
Type Description
uint
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX