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 returns it exactly to where it started - which is why the default is a third of a turn rather than none: an effect that does nothing until it is configured looks broken.
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.