piqnt / stage.js

2D HTML5 rendering and layout engine for game development
http://piqnt.com/stage.js/
Other
2.43k stars 241 forks source link

Is there a way to scale image to nearest neighbor? #36

Open slmjkdbtl opened 6 years ago

slmjkdbtl commented 6 years ago

I saw scaleMode but I didn't see how can I scale an image with nearest neighbor (to prevent pixelated image from blurry)?

shakiba commented 6 years ago

Unfortunately there is no way to do it, most of scaling option are designed to support responsive and high-resolution game ui.