Processing, shininess()
用法介紹。
用法
shininess(shine)
參數
shine
(float)
光澤度
返回
void
說明
設置形狀表麵的光澤度。與 ambient()
、 specular()
和 emissive()
結合使用以設置形狀的材料屬性。
例子
size(400, 400, P3D);
background(0);
noStroke();
background(0);
fill(0, 51, 102);
ambientLight(102, 102, 102);
lightSpecular(204, 204, 204);
directionalLight(102, 102, 102, 0, 0, -1);
specular(255, 255, 255);
translate(120, 200, 0);
shininess(1.0);
sphere(80); // Left sphere
translate(160, 0, 0);
shininess(5.0);
sphere(80); // Right sphere

相關用法
- Processing shorten()用法及代碼示例
- Processing shape()用法及代碼示例
- Processing shearY()用法及代碼示例
- Processing shader()用法及代碼示例
- Processing shapeMode()用法及代碼示例
- Processing shearX()用法及代碼示例
- Processing scale()用法及代碼示例
- Processing splice()用法及代碼示例
- Processing super用法及代碼示例
- Processing subset()用法及代碼示例
- Processing saveJSONArray()用法及代碼示例
- Processing strokeJoin()用法及代碼示例
- Processing saveXML()用法及代碼示例
- Processing switch用法及代碼示例
- Processing sqrt()用法及代碼示例
- Processing serverEvent()用法及代碼示例
- Processing save()用法及代碼示例
- Processing saveStrings()用法及代碼示例
- Processing saveTable()用法及代碼示例
- Processing saturation()用法及代碼示例
- Processing settings()用法及代碼示例
- Processing spotLight()用法及代碼示例
- Processing setLocation()用法及代碼示例
- Processing splitTokens()用法及代碼示例
- Processing setResizable()用法及代碼示例
注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 shininess()。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。