diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-04-15 10:09:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-04-16 10:02:46 +0200 |
commit | e197c7b29d8814d098bd53e9e7efd97c70f8de5f (patch) | |
tree | b91bd66bb2eb27d2b1dc07637b66bcdd34951b93 /go.mod | |
parent | 74e9129568e3b506a34205f11d024400f833a907 (diff) |
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
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions