# color

# nameArray : Object

Color utilities for jscad. Makes setting colors easier using css color names. Using .init() adds a .color() function to the CSG object.

You must use Colors.init(CSG) in the main() function. The CSG class is not available before

Kind: global constant
Example

include('jscad-utils-color.jscad');

function mainx(params) {
  Colors.init(CSG);

  // draws a purple cube
  return CSG.cube({radius: [10, 10, 10]}).color('purple');
}