Skip to content

Commit

Permalink
upd: moved to another section; updated info
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRovell authored and Vlad Shilov committed Jul 23, 2021
1 parent ef4d947 commit 77437b3
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,32 +265,6 @@ colord("#00336680").toCmykString(); // "device-cmyk(100% 50% 0% 60% / 0.5)"

</details>

<details>
<summary><code>Harmonies</code></b> (<b>Harmony colors</b> plugin)</summary>

Provides functionatity to generate [harmony colors](https://en.wikipedia.org/wiki/Harmony_(color)).

```js
import { colord, extends } from "colord";
import { harmonies } from "colord/plugins/harmonies";

const color = colord("FF0000");

color.harmonies("analogous")
.map(color => color.hex); // [ "#FF0080", "#FF0000", "#FF8000"]
color.harmonies("complimentary")
.map(color => color.hex); // [ "#FF0000", "#00FFFF" ]
color.harmonies("rectangle")
.map(color => color.hex); // [ "#FF0000", "#FFFF00", "#00FFFF", "#0000FF" ]
color.harmonies("tetradic")
.map(color => color.hex); // [ "#FF0000", "#80FF00", "#00FFFF", "#8000FF" ]
color.harmonies("triadic" )
.map(color => color.hex); // [ "#FF0000", "#00FF00", "#0000FF" ]
color.harmonies("splitcomplimentary")
.map(color => color.hex); // [ "#FF0000", "#00FF80", "#0080FF" ]
```
</details>

<details>
<summary><b><code>.toHwb()</code></b> (<b>hwb</b> plugin)</summary>

Expand Down Expand Up @@ -527,6 +501,32 @@ colord("#008080").mix("#808000", 0.35).toHex(); // "#50805d"

</details>

<details>
<summary><code>.harmonies(type = "complimentary")</code></b> (<b>harmonies</b> plugin)</summary>

Provides functionatity to generate [harmony colors](https://en.wikipedia.org/wiki/Harmony_(color)).

```js
import { colord, extends } from "colord";
import { harmonies } from "colord/plugins/harmonies";

const color = colord("FF0000");

color.harmonies("analogous")
.map(color => color.toHex()); // [ "#FF0080", "#FF0000", "#FF8000"]
color.harmonies("complimentary")
.map(color => color.toHex()); // [ "#FF0000", "#00FFFF" ]
color.harmonies("rectangle")
.map(color => color.toHex()); // [ "#FF0000", "#FFFF00", "#00FFFF", "#0000FF" ]
color.harmonies("tetradic")
.map(color => color.toHex()); // [ "#FF0000", "#80FF00", "#00FFFF", "#8000FF" ]
color.harmonies("triadic" )
.map(color => color.toHex()); // [ "#FF0000", "#00FF00", "#0000FF" ]
color.harmonies("split-complimentary")
.map(color => color.toHex()); // [ "#FF0000", "#00FF80", "#0080FF" ]
```
</details>

### Color analysis

<details>
Expand Down

0 comments on commit 77437b3

Please sign in to comment.