Color.operator - 运算符 减法

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

Description描述

Subtracts color b from color a. Each component is subtracted separately.

颜色a减去颜色b,每个组件分别相减。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public Color redColor = Color.magenta - Color.blue;

}
// magenta - blue = red

//紫红色-蓝色=红色

var redColor : Color = Color.magenta - Color.blue;
Page last updated: 2010-12-16