kmamal / node-sdl

🎮 SDL bindings for Node.js
https://www.npmjs.com/package/@kmamal/sdl
MIT License
121 stars 11 forks source link

Enhancement: Use GPU image smoothing (bilinear interpolation or some average filter) when using window.render function. #58

Open pedroth opened 3 months ago

pedroth commented 3 months ago

This is a nice to have feature, since the browser does something similar.

So, when I write the image buffer, using the function window.render and the size of the window is bigger than the buffer image, the default behavior is nearest neighbor interpolation:

image

I would expect something like the browser:

image

Both images have the same resolution, which is lower than the window size.

This feature is a total optional one, but it would be a cool one. Thank you for this amazing project.