Comments (4)
Here's an interesting and very complete article about that.
http://html5hub.com/state-of-nearest-neighbor-interpolation-in-canvas/#i.3bx5iz87ues5sm
The thing is, there's still no proper cross-browser support for this method of upscaling and also it will have a performance impact.
from pokesprite.
Thanks. This article seems to be a bit old, so with some luck things might have improved in Chrome.
It's unfortunate that IE doesn't have a valid method for doing this. However, using a modified image with doubled pixels might not be a bad thing (as long as it's loaded only when the pixel density is greater than 1.0) since it should not be that much larger than the non-upscaled version.
from pokesprite.
Well, now this can be implemented. This can be done by adding the following styles to .pkspr, and will work in most browsers.
-ms-interpolation-mode: nearest-neighbor;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: pixelated;
from pokesprite.
This has been implemented. Thanks for pointing me to this code @Josephvb10. 👍
from pokesprite.
Related Issues (20)
- Pokémon BDSP - New Icons HOT 7
- Custom female Wobbuffet sprites. HOT 1
- Pokémon LA - New Graphics HOT 5
- Pokemon PLA Sprites for Spreadsheet HOT 2
- Missing Galarian Sprites HOT 3
- Shiny Tentacruel sprite colors HOT 3
- Pixel Sprites for Hisui Balls dumped from HOME HOT 1
- [REQUEST] Origin Marks under Misc HOT 4
- shiny/decidueye-hisui same color as decidueye-hisui HOT 2
- Add Sprite for Uncloaked Burmy
- Add Generation 1/2 Icon Sprites
- 2x Single wrong pixel gen8 HOT 1
- Twinkling Star Ribbon is still missing HOT 1
- [Request] PoGo? HOT 3
- Yakkun zukan sprites HOT 2
- Add sprites from Pokemon Scarlet and Violet HOT 16
- Major updates to Pokésprite HOT 10
- Can you add Pokemon sprite that are in the world (meaning seen there 4 faces)
- Addition of Pokemon Legends Arceus sprites
- Exception Error After Building and Randomizing Pokemon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pokesprite.