meta data for this page
  •  

This is an old revision of the document!


General Functions

Colors

The 'colors' are accessed through the modeling API using the following:

const { colorize, hexToRgb } = require('@jscad/modeling').colors
Function Notes
let newshape = colorize([1, 0, 0], oldshape) API
let newshape = colorize(colorNameToRgb('lightblue'), oldshape) API
let newshape = colorize(hexToRgb('#000080'), oldshape) API

Utilities