1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00
Files
Bjørn Erik Pedersen e197c7b29d Add Luminance to Color
To sort an image's colors from darkest to lightest, you can then do:

```handlebars
{{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }}
```

This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance

Fixes #10450
2024-04-16 10:02:46 +02:00
..
2024-04-16 10:02:46 +02:00
2024-02-11 13:51:33 +02:00
2024-04-08 18:28:04 +02:00
2024-04-16 10:02:46 +02:00
2024-04-16 10:02:46 +02:00
2024-04-16 10:02:46 +02:00
2024-02-18 12:16:30 +01:00
2024-04-16 10:02:46 +02:00