0.1.21 • Published 5 years ago
lena-ts v0.1.21
fork from lena.js
Rewrite with ts, and add some functions
lena-ts
Tiny library for image processing.
Install via NPM
npm install lena-ts --saveInstall via yarn
yarn add lena-tspipe
Support string list, you can use this function in WebWorker
import { FilterList, pipe, red, invert, brightness } from '../src';
const filterList: FilterList = [red, invert, [brightness, 10]];
// also work~
const filterListStr: FilterList = ['red', 'invert', ['brightness', 10]];
const imageData = pipe(document.createElement('canvas'), filterList);Run demo
yarn demoCurrent filters
- Canny
- Gaussian
- Grayscale
- Highpass
- Invert
- Laplacian
- Mirror
- Noise
- Prewitt
- RGB
- Roberts
- Saturation
- Sepia
- Sharpen
- Sobel
- Thresholding
- Lowpass 3x3
Lowpass 5x5
License
Code is under MIT license
0.1.20
5 years ago
0.1.21
5 years ago
0.1.16
5 years ago
0.1.17
5 years ago
0.1.18
5 years ago
0.1.19
5 years ago
0.1.15
5 years ago
0.1.14
5 years ago
0.1.12
5 years ago
0.1.13
5 years ago
0.1.10
5 years ago
0.1.11
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago