getTriadic()
The getTriadic
function allows you to generate triadic colors combination
based on a given Spectrum
instance. If you are not familiar with the term, you
may find useful this article:
“What Are Triadic Colors and How Are They Used? Triadic Color Schemes Explained”.
Usage
Parameters
getTriadic(colorObj)
Parameter | Type | Required | Description |
---|---|---|---|
colorObj | Spectrum instance | true | The base color for triadic colors generation |
Return Value
The getTriadic
function returns a an Array
with two
Spectrum
instances, that are triadic colors for the
given one.