Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
exogen committed Oct 10, 2024
1 parent 702f018 commit b89766a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ 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
an existing `TypedArray` or a subarray backed by a single `ArrayBuffer`.
an existing `TypedArray` or a subarray backed by an existing `ArrayBuffer`.

When snapping colors to the Turbo colormap, a pre-initialized k-d tree is used
to perform nearest-neighbor search. Color similarity it judged via simple
to perform nearest-neighbor search. Color similarity is judged via simple
Euclidian distance in RGB space. Other methods may result in small visual
improvements, but are slower.

Expand Down

0 comments on commit b89766a

Please sign in to comment.