Debian Codegraph @

docs/content/en/functions/images/Colorize.md

raw
1 ---
2 title: images.Colorize
3 description: Returns an image filter that produces a colorized version of an image.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: images.filter
10 signatures: [images.Colorize HUE SATURATION PERCENTAGE]
11 ---
12
13 The hue is the angle on the color wheel, typically in the range [0, 360].
14
15 The saturation must be in the range [0, 100].
16
17 The percentage specifies the strength of the effect, and must be in the range [0, 100].
18
19 ## Usage
20
21 Create the filter:
22
23 ```go-html-template
24 {{ $filter := images.Colorize 180 50 20 }}
25 ```
26
27 {{% include "/_common/functions/images/apply-image-filter.md" %}}
28
29 ## Example
30
31 {{< img
32 src="images/examples/zion-national-park.jpg"
33 alt="Zion National Park"
34 filter="Colorize"
35 filterArgs="180,50,20"
36 example=true
37 >}}