M MY Multiplayer: Wiki
Side
Kind

setSkyColor

Client

Paints the sky with a gradient from the top to the horizon, over the time cycle, until resetSkyColor restores it.

bool setSkyColor(color top [, color bottom = top])

Parameters

NameTypeDescription
topcolorThe colour at the top of the sky: three numbers r, g, b (integers from 0 to 255) or a tocolor value.
bottomcolorThe colour near the horizon, in the same form.default top

Returns

true once the colours are set.

Example

setSkyColor(20, 30, 80, 200, 120, 60)

See also