Type Method 型メソッド

contrast(_:)

Returns a filter that applies a contrast adjustment.

Declaration 宣言

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

Return Value 戻り値

A filter that applies a contrast adjustment.

Parameters パラメータ

amount

An amount to adjust the contrast. A value of zero leaves the result completely gray. A value of one leaves the result unchanged. You can use values greater than one.

Discussion 議論

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

See Also 参照

Changing Brightness and Contrast