Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Sprite Tint on Canvas

$
0
0

Hello,

I'm seeing this behaviour that I can't understand, when applying a tint color to a sprite while using canvas as renderer. Right now for CORS reasons we're forced to use canvas in our app. I say this because in webgl the issue doesn't happen.

The thing is the we're cutting images into stripes and applying a tint to each stripe, but this creates a line between the stripes:

https://codepen.io/rhernando/pen/8fb06d28861d63ca5a6868f88c71f150?editors=0010

Just click the button to apply/remove the tint and you'll see the issue.

Why this happens?, is there a way around this or is just what we get in canvas?

Best,
Rodrigo.


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>