Class: ColorPool

SolidML.ColorPool(scheme, randMT)

Represents colorpool in Eisen Script.

Constructor

new ColorPool(scheme, randMT)

create colorpool by scheme string
Parameters:
Name Type Description
scheme string scheme string of colorpool command
randMT SolidML.randMT number generator for random picking
Source:

Members

scheme :string

colorpool scheme, specifyed by "set colorpool " command
Type:
  • string
Source:

Methods

getRGBA() → {object}

get RGBA color value
Source:
Returns:
object that has {r, g, b, a}
Type
object