Color.Harmony Class
Color Harmony provides methods useful for color combination discovery.
Item Index
Methods
Properties
Methods
getAnalogous
-
str
-
[offset]
-
[to]
Returns an Array of five colors. The first color in the Array will be the color passed in. The remaining four will be analogous colors two in either direction from the initially provided color.
Returns:
getBrightness
-
str
Returns 0 - 100 percentage of brightness from 0
(black) being the
darkest to 100
(white) being the brightest.
Parameters:
-
str
String
Returns:
getComplementary
-
str
-
[to]
Returns an Array of two colors. The first color in the Array will be the color passed in. The second will be the complementary color of the color provided
Returns:
getMonochrome
-
str
-
[count]
-
[to]
Calculates lightness offsets resulting in a monochromatic Array of values.
Returns:
getOffset
-
str
-
adjust
-
[to]
Adjusts the provided color by the offset(s) given. You may adjust hue, saturation, and/or luminance in one step.
Parameters:
Returns:
getSimilar
-
str
-
[offset]
-
[count]
-
[to]
Creates an Array of similar colors. Returned Array is prepended with the color provided followed a number of colors decided by count
Returns:
getSimilarBrightness
-
str
-
match
-
[to]
Returns a new color value with adjusted luminance so that the
brightness of the return color matches the perceived brightness
of the match
color provided.
Returns:
getSplit
-
str
-
[offset]
-
[to]
Returns an Array of three colors. The first color in the Array will be the color passed in. The second two will be split complementary colors.
Returns:
getSquare
-
str
-
[to]
Returns an Array of four colors. The first color in the Array will be the color passed in. The remaining three colors are equidistant offsets from the starting color and each other.
Returns:
getTetrad
-
str
-
[offset]
-
[to]
Returns an Array of four colors. The first color in the Array will be the color passed in. The remaining three colors are equidistant offsets from the starting color and each other.