Issues with canvases and blendmodes
Posted: Wed May 03, 2023 9:43 pm
Hello again Lövely people, I once again have an issue I can't figure out.
To preface, I know that the method I'm using definately isn't perfect, but it 'works' for me as is.
Some of you might remember a while back I was trying to draw polygons in a pixelated style, which I have managed to do by generating canvases. Issue is, I'm getting some blending issues now. Generating the image itself isn't having any issues, but drawing it creates this black outline, which I'm aware should be able to be fixed by setting the correct blend mode.
The wiki says 'The "premultiplied" constant should generally be used when drawing a Canvas to the screen', however, it looks like this when I set it to that: What am I doing wrong here?
To preface, I know that the method I'm using definately isn't perfect, but it 'works' for me as is.
Some of you might remember a while back I was trying to draw polygons in a pixelated style, which I have managed to do by generating canvases. Issue is, I'm getting some blending issues now. Generating the image itself isn't having any issues, but drawing it creates this black outline, which I'm aware should be able to be fixed by setting the correct blend mode.
The wiki says 'The "premultiplied" constant should generally be used when drawing a Canvas to the screen', however, it looks like this when I set it to that: What am I doing wrong here?