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