-
Notifications
You must be signed in to change notification settings - Fork 29
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
Wrong colors #55
Comments
The console displays: |
As you say. Just wanted to let you know that your library does not work correctly with colors 🙄 |
ahausladen
added a commit
to ahausladen/Image32
that referenced
this issue
Jun 28, 2024
The problem here was that TColorRenderer.RenderProc uses "(a * b) shr 8" what results in "(255*255) div 256" = 254 ($FE). The alpha channel calculation must divide by 255 instead. Fortunately there is already a MulTable[a,b]=Round(a*b/255) that can be used.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there!
<svg width="128" height="128" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M0 0h128v128H0z"/></svg>
= 255, 255, 255
<svg width="2" height="2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 .5h2M.5 0v2" stroke="#fff"/></svg>
= 254, 254, 254
Do you have any ideas how to fix it?
Source: Project1.zip
Original: EtheaDev/SVGIconImageList#273
The text was updated successfully, but these errors were encountered: