Tray API Docs V0.4

enfuseTray.paintbrush([theColor])

theColor
Currently the system is designed to accept a single “color object”. This object is designed to collect the required information, as well as luminosity sorted array of RGB color values. An example of the appropriate format is:

{
id:00001,
author:"jaminimaj",
colors[
"rgb(242,5,135)",
"rgb(217,4,142)",
"rgb(74,63,115)",
"rgb(65,242,210)",
"rgb(242,205,136)",
"rgb(191,162,107)"
]
}

This method allows a new color palette to be passed into the page after it has loaded, extending the enfuse painting capabilities beyond the tray. Ideal for creating a custom interface on a website, leveraging the enfuse color system. enfuse will always expect an array of six (6) color values.

This method is currently the only public method.