Color.operator Vector4 Manual     Reference     Scripting  
Scripting > Runtime Classes > Color
Color.operator Vector4

static implicit function Vector4 (c : Color) : Vector4

Description

A version of the color that has had the inverse gamma curve applied

JavaScript
var color : Color = Color (.3, .4, .6);
print(color.linear);

A version of the color that has had the gamma curve applied
JavaScript
var color : Color = Color (.3, .4, .6);
print(color.gamma);

Colors can be implicitly converted to and from Vector4.
JavaScript
// Convert a white color to a vector4
var aVector4 : Vector4 = Color.white;