首页 > 文档 > emissive()发射率
2017
08-07

emissive()发射率

Name

emissive()发射率

   

Examples

emissive()发射率 - 第1张  | Processing编程艺术emissive()发射率 - 第2张  | Processing编程艺术emissive()发射率 - 第3张  | Processing编程艺术

size(100, 100, P3D);

background(0);

noStroke();

background(0);

directionalLight(204, 204, 204, .5, 0, -1);

emissive(0, 26, 51);

translate(70, 50, 0);

sphere(30);

Description

Sets the emissive color of the material used for drawing shapes drawn to the screen. Used in combination with ambient()specular(), and shininess() in setting the material properties of shapes.

设置绘制到屏幕上的形状所用材料的放射颜色。在设置形状的材质属性时, 与环境 ()、镜面 () 和光泽 () 结合使用。

Syntax

emissive(rgb)

emissive(gray)

emissive(v1, v2, v3)

Parameters

rgb

int: color to set

要设置的颜色

v1

float: red or hue value (depending on current color mode)

红色或色相值 (取决于当前颜色模式)

v2

float: green or saturation value (depending on current color mode)

绿色或饱和值 (取决于当前颜色模式)

v3

float: blue or brightness value (depending on current color mode)

蓝色或亮度值 (取决于当前颜色模式)

Returns

void

Related

ambient()
specular()
shininess()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。