Significant 'banding' issues when exporting gradients and blurs #3249
Unanswered
mswpearson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm trying to recreate a 'mesh gradient' style image from a Figma design in Skia but am having some issue with exporting the image to the device where I'm seeing significant 'banding' and am looking for some advice.
The design is a simple radial gradient in the background with some random shapes layered on top in differing colours. Each shape / layer is then blurred, creating a sort of mesh gradient effect.
Pre-blur (figma):

Post-blur (figma):

The exported result from drawing in Skia:

Hopefully you can see the significant 'banding' artefacts on the final image (the banding doesn't seem to happen as much when previewing the image on the device, only when exporting the image.
Here is some sample code for drawing the design (note this is wrapped in a 1080x1920 canvas):
And how I am doing the export:
Is there anything I'm missing / tricks that I could use to reduce the banding artefacts here? I have tried exporting the entire SVG including blurs from Figma and simply drawing it as an
ImageSVG
but this produces the same effect.Appreciate any thoughts!
Beta Was this translation helpful? Give feedback.
All reactions