Multiplies two colors together. Each component is multiplied separately.
#pragma strict public class Example extends MonoBehaviour { function Start() { var grayColor: Color = Color.gray * Color.white; } }
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color grayColor = Color.gray * Color.white; } }
Multiplies color a
by the float b
. Each color component is scaled separately.
#pragma strict public class Example extends MonoBehaviour { function Start() { var whiteColor: Color = Color.gray * 2; } }
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color whiteColor = Color.gray * 2; } }
Multiplies color a
by the float b
. Each color component is scaled separately.
#pragma strict public class Example extends MonoBehaviour { function Start() { var whiteColor: Color = 2 * Color.gray; } }
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color whiteColor = 2 * Color.gray; } }
Did you find this page useful? Please give it a rating: