Join Slack
Powered by
How can I take a Color, and dull it slightly? I wa...
# compose
z
zt
04/12/2023, 5:15 AM
How can I take a Color, and dull it slightly? I want to avoid easy route of just changing alpha because then I get unintended side effects from it
r
romainguy
04/12/2023, 5:18 AM
Define "dull"
romainguy
04/12/2023, 5:19 AM
You could convert it to HSL and lower the saturation or lightness
romainguy
04/12/2023, 5:20 AM
https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color
romainguy
04/12/2023, 5:20 AM
See the hsl() and hsv() methods
2
Views
Open in Slack
Previous
Next