找回密码
 注册帐号

扫一扫,访问微社区

color.operator * 运算符 乘法

2015-1-4 23:17| 发布者: 杨炎| 查看: 1575| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: color.operator * 运算符 乘法staticoperator *(a: color,b: color) : colordescription描述multiplies two colors together. each component is multiplied separately.两个颜色相乘,每个组件分别相乘。c#javascri ...

color.operator * 运算符 乘法

staticoperator *(a: color,b: color) : color

description描述

multiplies two colors together. each component is multiplied separately.

两个颜色相乘,每个组件分别相乘。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public color graycolor = color.gray * color.white;

}

// white * gray = gray

//白色 x 灰色 =灰色

var graycolor: color = color.gray * color.white;

middot; staticoperator *(a: color,b: float) : color

description描述

multiplies color a by the float b. each color component is scaled separately.

浮点数b乘以颜色a,每个颜色组件分别相乘。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public color whitecolor = color.gray * 2;

}

// gray * 2 = white

//灰色 x 2 = 白色

var whitecolor: color = color.gray * 2;

o staticoperator *(b: float,a: color) : color

description描述

multiplies color a by the float b. each color component is scaled separately.

浮点数b乘以颜色a,每个颜色组件分别相乘。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public color whitecolor = 2 * color.gray;

}

// 2 * gray = white

//2 x 灰色= 白色

var whitecolor: color = 2 * color.gray;

相关阅读

文章点评
相关文章