Anime4K (for JS)
Millisecond anime upscaling with fantastic quality using GLSL shaders.
Read more about how it works here: https://github.com/bloc97/Anime4K
How do i install it?
In vanilla JS
Just load index.js from this repo.
Using Webpack, Parcel, Etc.
Install it using npm i --save anime4k
and include it using const Anime4K = require('anime4k')
How do i use it?
To create a new scaler, run Anime4K.Scaler(gl)
where gl
is a WebGL canvas context.
Example
// [For webpack, parcel, etc] Require Anime4Kconst Anime4K = // Create a canvasconst canvas = documentdocumentbody // Create the scalerconst scaler = Anime4K // Create an image to scaleconst inputImg = // When the image has loaded, scale it.inputImg { scaler scaler // 2x scale} // Load the imageinputImgsrc = 'some_image.png'