material.color shape attribute
Syntax
float material.color.{r|g|b}
string material.color.rgb
Description
The material.color shape attribute controls the diffuse color. In CGA, colors are always in (non-linear) sRGB.
Related
- material attributes
- set operation
- color operation
- resetMaterial operation
- setMaterial operation
- getMaterial function
Examples
Rainbow building
|
Lot-->
extrude(20)
set(material.color.g, 0)
split(x) {
2 : set(material.color.r, split.index/split.total)
set(material.color.b, 1.0 - split.index/split.total)
X
}*
The split index is used to generate position dependent colors. |
Copyright ©2008-2025 Esri R&D Center Zurich. All rights reserved.