Graphics & Media Lab. >> Курсы >> Спец. курс "Доп. главы машинной графики" 1999

Named Color (nmdClr)

key: nmdClr

type: sC

  1. s: name for new color
  2. C: color chunk


Description

Define a new named color. This color can then be referenced using color name (clrNm) chunks.


Conventions

By convention the nmdClr chunk should appear before any references to the this color using clrNm chunks. The name and color should be entered into a color dictionary for later look up.


Examples

nmdClr "dark_blue"
  rgb
    0.1 0.1 0.3
  end
end




mdl page


Graphics & Media Lab. >> Библиотека | Курсы | Графикон

Hosted by Graphics & Media Lab
http://graphics.cs.msu.su
lab_logo
mailto: Laboratory