找回密码
 注册帐号

扫一扫,访问微社区

color.grayscale 灰度

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

摘要: color.grayscale 灰度vargrayscale: floatdescription描述the grayscale value of the color (read only)颜色的灰度值(只读)c#javascriptusing unityengine;using system.collections;public class example :monob ...

color.grayscale 灰度

vargrayscale: float

description描述

the grayscale value of the color (read only)

颜色的灰度值(只读)

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public color color = new color(0.3f, 0.4f, 0.6f);

public void awake() {

print(color.grayscale);

}

}

var color : color = color (.3, .4, .6);

print(color.grayscale);

上一篇:color.gray 灰色下一篇:color.green 绿色

相关阅读

文章点评
相关文章