A filter for changing a pixel or element's hue, saturation, and brightness (HSB).
Introduced in Wear OS 4.
Syntax
<HsbFilter hueRotate="angle-degrees" saturate="normalized-float" brightness="normalized-float"> </HsbFilter>
Attributes
The HsbFilter element has the following attributes. Each attribute is
optional:
hueRotateRepresents an angle, in degrees, along the color wheel. An angle of
0.0degrees corresponds to red, an angle of120.0degrees corresponds to green, and an angle of240.0degrees corresponds to blue.By default, this value is
0.0.saturateRepresents the hue's saturation. This is a floating-point number that is in the range $ [0.0, 1.0] $. A saturation of
0.0represents a shade of gray; a saturation of1.0represents the hue's full color, with no gray mixing in.By default, this value is
1.0.brightnessRepresents the hue's brightness. This is a floating-point number that is in the range $ [0.0, 1.0] $. A brightness of
0.0represents black; a brightness of1.0represents the hue's full color, with no darkening.By default, this value is
1.0.
Recommended for you
- Note: link text is displayed when JavaScript is off
- HsbFilter
- Slider
- Progress indicators