8000 Update Colors.md · gohugoio/hugoDocs@af9e6bb · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Update Colors.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Apr 26, 2024
1 parent 0442f82 commit af9e6bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/en/methods/resource/Colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ Luminance
: (`float64`) Returns the [relative luminance] of the color in the sRGB colorspace in the range [0, 1]. A value of `0` represents the darkest black, while a value of `1` represents the lightest white.

{{% note %}}
Image filters such as [`images.Overlay`] and [`images.Padding`] will accept either a hexadecimal color value or an `images.Color` object.
Image filters such as [`images.Dither`], [`images.Padding`], and [`images.Text`] accept either hexadecimal color values or `images.Color` objects as arguments.

Hugo renders an `images.Color` object as a hexadecimal color value.

[`images.Overlay`]: /functions/images/overlay/
[`images.Dither`]: /functions/images/dither/
[`images.Padding`]: /functions/images/padding/
[`images.Text`]: /functions/images/text/
{{% /note %}}

[hexadecimal color]: https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color
Expand Down

0 comments on commit af9e6bb

Please sign in to comment.
0