Skip to content

lijialiang/lut-filter

Repository files navigation

LUT Filter

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

LICENSE

MIT

About

Rendering image with LUT filter effect.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published