color operation

Synopsis

color(s)

color(r,g,b)

color(r,g,b,o)

Parameters

The color operation sets the color of the current shape's material.

Note: this command has the same effect as set(material.color.{r|g|b}, val), it is a shortcut for convenience.

 

Related

Examples

Three ways to set a shape's color


3 ways to set color
Lot-->
   extrude(20)
   split(x) { 
      2 : color("#ff0000") X |
      2 : color(1, 0, 0) X |
      2 : set(material.color.r, 1.0) 
          set(material.color.g, 0) 
          set(material.color.b, 0) X 
   }
Three ways to set a shape's color. The results are identical.

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.