Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
exogen authored Oct 14, 2024
1 parent dea8f94 commit 4f5964e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ to perform quick color and image conversions.
Note: this library generates more faithful values than the d3 approximation of
Turbo found in [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic).

👉 **[Try the interactive demo page](https://exogen.github.io/turbo-colormap/)**
> [!TIP]
> 👉 **[Try the interactive demo page!](https://exogen.github.io/turbo-colormap/)**
## Install

Expand Down Expand Up @@ -58,8 +59,9 @@ When a Turbo RGB triplet is returned from the colormap, it will be the same
is the `interpolateNormalizedToTurbo` function, which creates a new array each
time since it interpolates between Turbo colors.

It is important you don’t mutate the returned RGB values without copying them
into your own array first.
> [!CAUTION]
> It is important you don’t mutate the returned RGB values without copying them
> into your own array first.
Any RGB triplet parameters accepted by the functions in this library need only
to be array-like. This reduces the need for copying, because you can supply
Expand Down

0 comments on commit 4f5964e

Please sign in to comment.