The saturation multiplier.
0 produces grayscale, 1 is the original color, and values greater than 1 oversaturate.Adjusts the color saturation of a component.
.saturation(amount: number): Component
0 produces grayscale, 1 is the original color, and values greater than 1 oversaturate.Image({ url: "photo.jpg" })
.frame({ width: 200, height: 200 })
.saturation(0)
Image({ url: "photo.jpg" })
.frame({ width: 200, height: 200 })
.saturation(0.5)
Image({ url: "photo.jpg" })
.frame({ width: 200, height: 200 })
.saturation(2)