colors.js is part of Aloha Editor project http://www.alohaeditor.org
Aloha Editor ● JavaScript Content Editing Library
Copyright (c) 2010-2015 Gentics Software GmbH, Vienna, Austria.
Contributors http://www.alohaeditor.org/docs/contributing.html
Aloha Editor ● JavaScript Content Editing Library
Copyright (c) 2010-2015 Gentics Software GmbH, Vienna, Austria.
Contributors http://www.alohaeditor.org/docs/contributing.html
Methods
-
Cross fades RGBA color `from` to RBG color `to` by a given percent.
Name Type Description from
Array.<number> to
Array.<number> percent
number Range from 0 - 1 -
Checks whether the two given colors are equal in value (if not in
representation).
equals('#f00', 'rgb(255,0,0)') == trueName Type Description a
string b
string -
Given a color string, will normalize it to a hexidecimal color string.
Name Type Description value
string -
Given a color string, will normalize it to a RGB color string.
Name Type Description value
string -
Returns a human readable representation of the given color.
Name Type Description color
Array.<(number|string)>