Skip to content
Documentation is work in progress. Information may be out of date and inaccurate.

Color

Examples#

local grey_color = Color(0.5, 0.5, 0.5, 1)

Constructors#

🧽 Properties#

Functions#

Info

This structure supports +, -, *, /, ==, and tostring operations.

🗼 Static Properties#

Value Name
Color(1, 1, 1) Color.WHITE
Color(0, 0, 0) Color.BLACK
Color(0, 0, 0, 0) Color.TRANSPARENT
Color(1, 0, 0) Color.RED
Color(0, 1, 0) Color.GREEN
Color(0, 0, 1) Color.BLUE
Color(1, 1, 0) Color.YELLOW
Color(0, 1, 1) Color.CYAN
Color(1, 0, 1) Color.MAGENTA
Color(1, 0.5, 0) Color.ORANGE
Color(0.5, 1, 1) Color.CHARTREUSE
Color(0, 1, 0.5) Color.AQUAMARINE
Color(0, 0.5, 1) Color.AZURE
Color(0.5, 0, 1) Color.VIOLET
Color(1, 0, 0.5) Color.ROSE

Static Functions#