Type Method 型メソッド

saturation(_:)

Returns a filter that applies a saturation adjustment.

Declaration 宣言

static func saturation(_ amount: Double) -> GraphicsContext.Filter

Return Value 戻り値

A filter that applies a saturation adjustment.

Parameters パラメータ

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.

Discussion 議論

This filter is equivalent to the saturate filter primitive defined by the Scalable Vector Graphics (SVG) specification.

See Also 参照

Manipulating Color