HOME | DD

murtada-king — Crispy Pixels - Widget for sharp pixel art

Published: 2014-07-23 11:05:59 +0000 UTC; Views: 400; Favourites: 27; Downloads: 3
Redirect to original
Description

Crispy Pixels available here: murtada.nl/experiments/crispy-…

Ever wanted to showcase your pixel art zoomed in without it getting blurry in a browser? Unfortunately, it's not easy to do right now.

Firefox, Opera and even Internet Explorer all have a simple CSS property to enforce "nearest-neighbor" interpolation, but WebKit browsers like Chrome, Safari and most mobile browsers do not have this option available yet. So I created a way around this problem with HTML5 canvas.

With this widget, your pixel art can be shown on the web with custom width and height properties to have them zoomed in, and get the nice pixel sharpness back that you want for your pixel art!

Happy pixelin'!

Murtada al Mousawy

Related content
Comments: 1

Sokomomoko [2016-08-09 20:27:35 +0000 UTC]

cool

👍: 0 ⏩: 0