I’m having an issue with banding as on the image b...
# compose
m
I’m having an issue with banding as on the image below. Any ideas? This screenshot from JVM app, but the same issue I have on device Android API 30 and emulator API 33. I don’t see in compose any dithering or RGBA_8888 or #FE transparency hacks that could work. So again, ideas? 😄
@romainguy, sorry for direct. I see that you posted earlier that dither should be on for gradients by default. So I wonder if this is acceptable behavior?
r
I can't see banding in your screenshot. I see a Mach band but there's nothing you can do about that, it's a perception issue in our brains
m
Alright I thought that some graining effect would fix our brains and there is something in the framework we could leverage
r
You're talking about the white band at the bottom right?
m
I'm talking about feeling that center is most bright
While it's the same calor from center to the bottom
r
Yeah that's the Mach band
Nothing you can do about that, certainty not with dithering
I mean the fix is to change the colors you use or to change the "slope" of the gradient
m
Thank you for your help 🙏
r
Anytime!
I gave a talk to my team a while back on this kind of issues, i should make it public or turn it into an article
m
It's probably something that designers should be aware too
r
Indeed!