Why is the picture referenced by the pixi.js wizard blurry and unclear?

the original picture is very clear

the code is as follows:

   

Apr.03,2022

in webgl mode, set your pixi resolution to 2 times your physical resolution, such as

let app = new PIXI.Application({
...
resolution:2
...
});

let app = new PIXI.Application({
...
resolution:2,
width:window.innerWidth,
height:widow.innerHeight
...
});

app.renderer.autoDensity=true;

app.renderer.resize(window.innerWidth,window.innerHeight);

in this way, my pixi version is 5.2.1

.

the image is definitely not clear after zooming. It is recommended to change it to svg format, or use the original image size


fromImage" rel=" nofollow noreferrer "> http://pixijs.download/releas...
to try to pass in the scaleMode parameter

Menu