Version: 3.0.0
Duotone
Apply a duotone* effect to the image.
The parameters are:
- h, the- highlightcolor
- s, the- shadowcolor
- o, the- opacity(optional)
Colors can be expressed in any accepted format.
If an opacity is given, a semi-transparent version of the duotone image will be composited with the
original image. This way the original colors will be visible under the choosen tones.
Example
Without opacity
https://caravaggio.now.sh/duotone,h:7aff62,s:6b11ca/?image=https://cvg-res.now.sh/family.jpegWith opacity at 0.6
https://caravaggio.now.sh/duotone,h:7aff62,s:6b11ca,o:0.6/?image=https://cvg-res.now.sh/family.jpegOriginal

Result
An opacity of 0.6 is used here, so original colors are visible:

Reference
This effect is borrowed by gatsby-plugin-sharp and inspired by articles like duotone in js