static implicit function Vector4 (c : Color) : Vector4
Description
A version of the color that has had the inverse gamma curve applied
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
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.