HueRotateEffect
A pixel shader effect that turns every colour in its input around the colour wheel while leaving its brightness where it was.
public class HueRotateEffect : ShaderEffect
Inherits from / implements: ShaderEffect
Remarks
The rotation is the constant-luminance matrix SVG's feColorMatrix uses for hueRotate, so a light pixel stays light. Animating Angle through 2*PI sweeps the picture through the spectrum and back to the original. The default is a third of a turn, so the effect is visible without configuration.
Members at a glance
HueRotateEffect | Initializes a new instance of the HueRotateEffect class. |
Angle | How far the colours are turned, in radians. 2*PI is a full turn back to the original. |
Input | The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush. |
AngleProperty | Identifies the Angle dependency property. |
InputProperty | Identifies the Input dependency property. |
Constructors
HueRotateEffect
Initializes a new instance of the HueRotateEffect class.
Properties
Angle
How far the colours are turned, in radians. 2*PI is a full turn back to the original.
Input
The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush.
Fields
AngleProperty
Identifies the Angle dependency property.
InputProperty
Identifies the Input dependency property.