1.0.1 • Published 2 years ago

lut-filter v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

LUT Filter npm.io

Rendering image with LUT filter effect.

Install

# yarn
yarn add lut-filter
# npm
npm install lut-filter

Usage

WebGL

import lutFilter from 'lut-filter/webgl'

lutFilter({
  canvas: <HTMLCanvasElement>,
  image: <HTMLImageElement>,
  filterImage: <HTMLImageElement>
})

Playground

WebGPU

import lutFilter from 'lut-filter/webgpu'

lutFilter({
  canvas: <HTMLCanvasElement>,
  image: <HTMLImageElement>,
  filterImage: <HTMLImageElement>
})

Playground

WebGPU vs WebGL

npm.io

LICENSE

MIT