anime4k.js
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Anime4K.js

A WebGL port of Anime4K (4.0.1) glsl filter

Feature

  • Anime4K Upscaler in WebGL

Build

Preparing

git clone https://github.com/monyone/Anime4K.js
cd Anime4K.js
yarn

Compile

yarn build

Getting Start

Image Upscale

const upscaler = new Anime4KJS.ImageUpscaler(Anime4KJS.ANIME4KJS_SIMPLE_M_2X /* PROFILE */);
upscaler.attachSource(textureSource, canvasElement);
upscaler.upscale(); // do upscale

Video Upscale

const upscaler = new Anime4KJS.VideoUpscaler(30 /* TARGET FPS */, Anime4KJS.ANIME4KJS_SIMPLE_M_2X /* PROFILE */);
upscaler.attachVideo(videoElement, canvasElement);
upscaler.start(); // start upscale

Credits

Package Sidebar

Install

npm i anime4k.js

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

13.6 MB

Total Files

170

Last publish

Collaborators

  • monyone