Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lijialiang/lut-filter

Rendering image with LUT filter effect.
https://github.com/lijialiang/lut-filter

canvas webgl webgpu

Last synced: 8 days ago
JSON representation

Rendering image with LUT filter effect.

Awesome Lists containing this project

README

        

# LUT Filter ![](https://img.shields.io/npm/v/lut-filter?style=flat-square)

Rendering image with LUT filter effect.

## Install

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

## Usage

### WebGL

```js
import lutFilter from 'lut-filter/webgl'

lutFilter({
canvas: ,
image: ,
filterImage:
})
```

[Playground](https://jsbin.com/gixozet)

### WebGPU

```js
import lutFilter from 'lut-filter/webgpu'

lutFilter({
canvas: ,
image: ,
filterImage:
})
```

[Playground](https://jsbin.com/daxexom)

## WebGPU vs WebGL

![](docs/webgpu-vs-webgl.png)

## LICENSE

[MIT](LICENSE)