1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00

docs: clarify order of extracted colors

This commit is contained in:
Wez Furlong 2022-07-12 17:13:46 -07:00
parent 1a5fdb41da
commit 7c5c633668

View File

@ -3,7 +3,10 @@
*Since: nightly builds only* *Since: nightly builds only*
This function loads an image from the specified filename and analyzes it to This function loads an image from the specified filename and analyzes it to
determine a set of distinct colors present in the image. determine a set of distinct colors present in the image, ordered by how often a
given color is found in the image, descending. So if an image is predominantly
black with a bit of white, then black will be listed first in the returned
array.
This is potentially useful if you wish to generate a color scheme to match This is potentially useful if you wish to generate a color scheme to match
an image, for example. an image, for example.
@ -99,7 +102,6 @@ When `min_contrast` is in use and fewer than `num_colors` matching colors are
found, `min_contrast` is *not* automatically relaxed when retrying with a lower found, `min_contrast` is *not* automatically relaxed when retrying with a lower
`threshold`. `threshold`.
This example computes a color palette for the terminal based on some other image file: This example computes a color palette for the terminal based on some other image file:
```lua ```lua