Global.helma.Color.fromName (name)
create a helma.Color from trivial name

  • Parameter String:
    the color's name (like "darkseagreen")
  • Returns
    helma.Color the resulting color object
Sourcecode in /home/hannes/helma/modules/helma/Color.js:
111:   helma.Color.fromName = function(name) {
112:       var value = helma.Color.COLORNAMES[name.toLowerCase()];
113:       if (!value)
114:           value = 0;
115:       return new helma.Color(value);
116:   }