Class: PaletteBuilder

Palette. PaletteBuilder

Contains methods for building the color palette


new PaletteBuilder(source, outputPath, name)

Sets the input file or url and the output file name (if provided)

Parameters:
Name Type Description
source string

The source file/url parsed for color values

outputPath string

The path to save the output files

name string

The provided name for the generated output files

Source:

Methods


buildHtmlOutput(searchText)

Build HTML Output

Creates the color palette Html file. Sorts the color swatches by 'Luminosity'

Parameters:
Name Type Description
searchText string

The text to parse for colors values

Source:
Returns:

An array of hexadecimal color values

Type
Array.<string>