-
Notifications
You must be signed in to change notification settings - Fork 0
Color Funtions
This extension adds a bunch of color functions.
- ID:
ext_color - Accessed with:
thorium.color

color.FromHex(hexstring: string) -> Color
Create color from a hex string

Color.ToLuminance(self: Color) -> number
Converts color to a luminance - how "bright" color is.

Color.ToHex(self: Color) -> string
Converts color into a hex string

Color.ToGrayscale(self: Color) -> Color
Converts color into a hex string

Color.Invert(self: Colorm invert_alpha: boolean) -> Color
Converts color into a hex string

Color.SetBrightness(self: Color, bright: number) -> Color
Sets color brightess

color.SERVER: Color = Color(156, 241, 255, 200)

color.CLIENT: Color = Color(255, 241, 122, 200)

color.MENU: Color = Color(100, 220, 100, 200)

color.SERVER_ERR = Color(136, 221, 255, 200)

color.CLIENT_ERR = Color(255, 221, 102, 200)

color.MENU_ERR = Color(120, 220, 100, 200)

color.REALM = Varies, based on current realm