monyone / Anime4K.js

Anime4K WebGL port/implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anime4K.js

A WebGL port of Anime4K (4.0.1) glsl filter

Feature

  • Anime4K Upscaler in WebGL

Demo

Image Upscaling Demo is Here https://monyone.github.io/Anime4K.js/

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

About

Anime4K WebGL port/implementation

License:MIT License


Languages

Language:TypeScript 99.8%Language:Python 0.2%Language:JavaScript 0.0%Language:Shell 0.0%