Color.operator *

static operator * (a : Color, b : Color) : Color

Description

Multiplies two colors together. Each component is multiplied separately.

JavaScript
    // white * gray = gray
var grayColor: Color = Color.gray * Color.white;

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

Description

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

JavaScript
    // gray * 2 = White
var whiteColor: Color = Color.gray * 2;

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

Description

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

JavaScript
    // 2 * gray = White
var whiteColor: Color = 2 * Color.gray;