Skip to content
Advertisement

How to increase quality on a PixiJS canvas?

enter image description hereI made horizontal scroll website with PIXI JS and it has a ripple effect. it worked fine till now but the only issue is it’s showing a very low quality when I open up the website and from what I figured out that PIXI JS renderer get width and height to 800 x 600 resolution. any ideas how to change the quality ?

here’s the PIXI JS code snippet:

JavaScript
JavaScript

Advertisement

Answer

just found the answer and it was very silly thing actually.

the issue was with the width and the height they were set to window.innerWidth and window.innerHeight. my image quality was quite high so basically multiplying the width and the height inside PIXI.Application by 3 or 4 increases the qualit.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement