Color.r

Returns the red value of a color.

Kind: Member

Environments: Game, Terrain

Game

Open the full Game reference

Game Get

Returns the red value of a color.

Returns:

Type Description
number The red value.

Game Set

Sets the red value of a color.

Parameters:

Name Type Description
r number The red value.

Terrain

Open the full Terrain reference

Terrain Get

Returns the red value of a color.

Returns:

Type Description
number The red value.

Terrain Set

Sets the red value of a color.

Parameters:

Name Type Description
r number The red value.