-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High banding in the gradients generated by gg #24
Comments
@fogleman Could you help us with this? Is there anything we must do to ensure less banding in the gradients generated. This is a great library for generating gradients since its very simple and intuitive. It's unfortunate that we get such high banding. |
Can you post code and an image showing the effect? I don't see an issue in the gradient examples. |
|
Well the only way to improve that would be to go to a 16-bit image. Currently |
Oh alright! Is it possible to create a v2 package? I am also happy to help through PRs if you can give me an overview of the places that require changing. |
It would start by changing RGBA -> NRGBA64 and Alpha -> Alpha16 throughout the code. But it might not actually be so easy. The freetype/raster package which gg is built upon only seems to support RGBA and Alpha. https://github.com/golang/freetype/blob/master/raster/paint.go |
The banding is really high. Is there any way to reduce this for the generated images?
The text was updated successfully, but these errors were encountered: