SlashCo Wiki

SlashCo.GetGlobalFogColor

 Color or Vector, number, number, number SlashCo.GetGlobalFogColor( number type, Color object )

Description

Returns the color set by SlashCo.SetGlobalFogColor.

Passing a Vector as object does not work correctly due to a bug - the color is always written into object.r/g/b fields as if object were a Color.

Arguments

1number type

Controls the return format when object is not given. If omitted, returns a Color. If 1, returns a Vector with components in the 0-1 range. If 2, returns the r, g, b components as three separate numbers.

2Color object

If given, the color is written directly into this object's r, g and b fields instead of a new value being returned

Returns

1Color or Vector color

The fog color as a Color, or as a Vector (0-1 range) if type is 1. Not returned if object is given, or if type is 2

2number r

Red component (0-255), only returned if type is 2

3number g

Green component (0-255), only returned if type is 2

4number b

Blue component (0-255), only returned if type is 2