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

static operator / (a : Color, b : float) : Color

Description

Divides color a by the float b. Each color component is scaled separately.

JavaScripts
// white / 2 = gray
var grayColor : Color = Color.white / 2;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
public Color grayColor = Color.white / 2;
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

public grayColor as Color = (Color.white / 2)