getSplitComplementary()
The getSplitComplementary
function allows you to generate split complementary colors based on a given Spectrum
instance.
If you are not familiar with the term, you may find useful this article:
“What Are Split-Complementary Colors? Best Ways to Use This Color Scheme”.
Usage
Parameters
getSplitComplementary(colorObj)
Parameter | Type | Required | Description |
---|---|---|---|
colorObj | Spectrum instance | true | The base color for complementary colors generation |
Return Value
The colorMix
function returns a an object with two keys: secondary
and tertiary
,
the generated split complementary colors for the given one. The values are instances of
Spectrum
class.