HueRotate

class HueRotate(val degrees: Float) : EffectSpec(source)

Turn every hue around the color wheel by the same angle.

The rotation is the linear one filter: hue-rotate() in a browser applies, which spins the chroma about the luma axis and leaves a grey pixel exactly where it was. A full turn is the identity, so degrees is read modulo 360.

Throws

when degrees is not a finite number.

Constructors

Link copied to clipboard
constructor(degrees: Float)

Properties

Link copied to clipboard
Link copied to clipboard

How far to turn, where 0f leaves the frame unchanged and 180f swaps every hue for the one opposite it.

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