Color Name (clrNm)

key: clrNm

type: S

  1. string: color name.


Description

look up color with this name and substitute it here


Conventions

By convention the name should refer to a named color previously defined using a named color (nmdClr) chunk. This is a color chunk which can appear anywhere a color chunk is allowed or required.


Examples

nmdClr      % define a flat gray named color 
"gray"
   rgb 0.5 0.5 0.5 end
end

msh  % a square mesh using matte_gray material
   "" 
   lmbrtn 
     clrNm "gray" 
   end
   vrtxPstn
     0.5 -0.5 0.0
     0.5  0.5 0.0
     -0.5  0.5 0.0
     -0.5 -0.5 0.0
   end
   vrtxUV    % used for texture mapping
     1.0 0.0
     1.0 1.0
     0.0 1.0
     0.0 0.0
   end
   qdrltrl
     0 1 2 3
   end
end