HsbFilter
Stay organized with collections
Save and categorize content based on your preferences.
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:
hueRotate
Represents an angle, in degrees, along the color wheel.
An angle of 0.0
degrees corresponds to red, an angle of 120.0
degrees
corresponds to green, and an angle of 240.0
degrees corresponds to blue.
By default, this value is 0.0
.
saturate
Represents the hue's saturation. This is a floating-point number that is in
the range $ [0.0, 1.0] $. A saturation of 0.0
represents a shade of gray; a
saturation of 1.0
represents the hue's full color, with no gray mixing in.
By default, this value is 1.0
.
brightness
Represents the hue's brightness. This is a floating-point number that is in
the range $ [0.0, 1.0] $. A brightness of 0.0
represents black; a brightness
of 1.0
represents the hue's full color, with no darkening.
By default, this value is 1.0
.
Recommended for you
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-17 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-06-17 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-17 UTC."]]