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);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public Color color = new Color(0.3F, 0.4F, 0.6F);
void Example() {
print(color.linear);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public color as Color = Color(0.3F, 0.4F, 0.6F)

def Example():
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);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public Color color = new Color(0.3F, 0.4F, 0.6F);
void Example() {
print(color.gamma);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public color as Color = Color(0.3F, 0.4F, 0.6F)

def Example():
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;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public Vector4 aVector4 = Color.white;
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public aVector4 as Vector4 = Color.white