Saturation

class Saturation(val factor: Float) : EffectSpec(source)

Move every pixel towards or away from its own grey.

A pixel's grey is its Rec. 709 luma, and factor is how far the pixel sits from it: 0f lands on the grey and turns the frame monochrome, 1f leaves it alone, and 2f pushes each channel twice as far from the grey as it started. The luma itself is unchanged at any factor, so a grey pixel stays exactly where it was.

Throws

when factor is not a finite number.

Constructors

Link copied to clipboard
constructor(factor: Float)

Properties

Link copied to clipboard
Link copied to clipboard

How saturated the frame comes out, where 1f leaves it unchanged and 0f is grey. Negative values are read as 0f.

Link copied to clipboard
open override val id: String
Link copied to clipboard
open val isInert: Boolean
Link copied to clipboard
Link copied to clipboard
open val scope: EffectScope
Link copied to clipboard
open override val stage: EffectStage