Color¶
A color composed of components (R, G, B, A) with floating point precision. The values are between 0 and 1.
Tip
This structure is Open Sourced at https://github.com/nanos-world/nanos-world-lua-lib. Feel free to push merge requests and suggest changes!
Tip
This structure supports +, -, *, /, ==, and tostring operations.
Usage¶
local GreyColor = Color(0.5, 0.5, 0.5, 1)