sm.color

A color is represented using a red, green, blue and alpha component. Colors are prominently used for blocks and parts that are colored by the Paint Tool.

Kind: API page

Environments: Game, Terrain

Game

Open the full Game reference

To create one, use sm.color.new. It is possible to use hex 0xRRGGBBAA or strings "RRGGBBAA".

Note: R, G, B, A values range between 0.0–1.0.

Terrain

Open the full Terrain reference

To create one, use sm.color.new. It is possible to use hex 0xRRGGBBAA or strings "RRGGBBAA".

Note: R, G, B, A values range between 0.0–1.0.