Back to DOM
HueClass
Definition
- Namespace
- DOM.Elements.Graphics.Colors
- Assembly
- DOM.dll
Represents a hue rotation modifier applied to a color.
Remarks
rotates a color around the color wheel by a configurable angle. It derives from so it also supports optional modulation and offset modifiers, and it exposes an implicit conversion from (degrees). Hue BaseColorField Double The hue is typically attached to a through its property. Color Hue
Examples
csharp
1// 1. Explicit hue modifier
2var hue = new Hue { Angle = 180 };
3
csharp
1// 2. Implicit conversion from double
2Hue hue = 90;
3
csharp
1// 3. Attach to a color
2var color = new Color("#FF5733") { Hue = new Hue { Angle = 45 } };
3
csharp
1// 4. Combine with modulation
2var hue = new Hue { Angle = 180, Modulation = new Percentage(75) };
3
Properties
AngleRotation
Gets or sets the hue rotation angle.
Methods
Implicitly converts a (degrees) to a . Double, Hue