odrick / free-tex-packer

Free texture packer
http://free-tex-packer.com/
MIT License
911 stars 168 forks source link

0.6.0 Extrusion bug #28

Closed JoakimCh closed 4 years ago

JoakimCh commented 4 years ago

When extruding by x amount of pixels only the pixels at the edge should be repeated this many times. This is not the case, a red box with a blue outline (for example) will mix both blue and red in the extruded pixels (which is a very strange phenomena?).

JoakimCh commented 4 years ago

I found a solution though! Adding ctx.imageSmoothingEnabled = false in renderExtrude() did the trick! Or add it in renderItem().

odrick commented 4 years ago

Thanks! Fixed.

JoakimCh commented 2 years ago

Well, it's broken again... See 4ba6465c51b9d6e6cc524a6d618c0a5c0b0b60ba