找回密碼
 注冊帳號

掃一掃,訪問微社區

color.operator * 運算符 乘法

2015-1-4 23:17| 發布者: 楊炎| 查看: 1531| 評論: 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;

相關閱讀

文章點評
相關文章
女校游泳队彩金