pen alpha bug [fixed]

Published 2019-01-04
Pen transparency is even more broken :D

The circle in the middle is is a black circle drawn with transparency, the circle to the right is drawn using pen and the circle to the left is part of the backdrop image. As you can see, transparency affects both circles differently - the red circle that was drawn using pen gets darkened correctly, but the background image gets brightened up at <45% alpha.

Also, notice how there is a very subtle white ring around everything drawn using the pen blocks - this seems to be caused by anti-aliasing, which add transparency to these pixels so the bug affects them too.

---------- Edit:
Looks like the bug is finally fixed now. I've submitted a bug fix for this on github a few months ago, and it looks like it has finally been merged into the page: https://github.com/LLK/scratch-render/pull/418