palette

create palette using given base color


Parameters

palette color :color

Attributes

triadgenerate a triad palette
tetradgenerate a tetrad palette
splitgenerate a split complement palette
analogousgenerate an analogous palette
monochromegenerate a monochromatic palette
randomgenerate random palette based on color triads
size:integerspecify the size of the generated palette

Returns

  • :block

Examples

copy
palette.triad #red ; => [#FF0000 #00FF00 #0000FF] palette.tetrad #red ; => [#FF0000 #80FF00 #00FFFF #7F00FF]

copy
palette.monochrome #red ; => [#FF0000 #D40000 #AA0000 #7F0000 #550000 #2A0000] palette.monochrome.size:10 #red ; => [#FF0000 #E50000 #CC0000 #B20000 #990000 #7F0000 #660000 #4C0000 #330000 #190000]

copy
palette.analogous #red ; => [#FF0099 #FF0066 #FF0033 #FF0000 #FF3300 #FF6600] palette.analogous.size:10 #red ; => [#FF00FF #FF00CC #FF0099 #FF0066 #FF0033 #FF0000 #FF3300 #FF6600 #FF9900 #FFCC00]

copy
palette.random #red ; => [#FF0000 #00EC00 #0000D2 #00F000 #0000FF #00FF00] palette.random.size:10 #red ; => [#FF0000 #00FF00 #0000FF #00FE00 #F30000 #00FD00 #0000ED #EC0000 #00F800 #0000D8]

Related