saturation(_:)
Returns a filter that applies a saturation adjustment.
Declaration
static func saturation(_ amount: Double) -> GraphicsContext.FilterParameters
- amount:
The amount of the saturation adjustment. A value of zero to completely desaturates each pixel, while a value of one makes no change. You can use values greater than one.
Return Value
A filter that applies a saturation adjustment.
Discussion
This filter is equivalent to the saturate filter primitive defined by the Scalable Vector Graphics (SVG) specification.