Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Color.operator /

Switch to Manual
public static operator /(a: Color, b: float): Color;

Parameters

Description

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

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