| MATLAB Function Reference | ![]() |
Syntax
shading flat shading faceted shading interp
Description
shading函數控制曲面和貼片的圖形物件之色彩連續變化處。
shading flat
同一個網線切片和表面都有固定的顏色,這顏色值是由切面的最後一個點或有最小索引值的角落所訂。
shading faceted
是flat shading的形式且在交接處加上黑色的邊線,這是預設的形式。
shading interp
在一個線或面上呈現連續的顏色變化,顏色變化是藉著插入顏色對照表或RGB的值來做改變。
Examples
比較flat、faceted、和interpolated-shaded三種形式的球體。
subplot(3,1,1)
sphere(16)
axis square
shading flat
title('Flat Shading')
subplot(3,1,2)
sphere(16)
axis square
shading faceted
title('Faceted Shading')
subplot(3,1,3)
sphere(16)
axis square
shading interp
title('Interpolated Shading')
Algorithm
shading 設定目前圖軸上所有曲面和貼片圖形物件的EdgeColor和FaceColor屬性,而shading依著曲面或貼片圖形物件是表現網(mesh)或實體的表面來設定適當的值。
See Also
fill,fill3,hidden,mesh,patch,pcolor,surf
對曲面和貼片圖形物件的EdgeColor和 FaceColor 屬性
| setxor | shiftdim | ![]() |