@4bitlabs/blur-filters
TypeScript icon, indicating that this package has built-in type declarations

1.0.18 • Public • Published

@4bitlabs/blur-filters License NPM Version NPM Downloads

A collection of blur-filters for rendering Sierra On-line SCI-engine assets.

Documentation

Full documentation for the library can be found here.

Filters

Method Description
gaussBlur(sigma: number): ImageFilter Applies a gaussian blur to the image in-place
hBlur(sigma: number): ImageFilter Applies a gaussian blur, only on the horizontal axis
boxBlur(s: number): ImageFilter Applies a fast box-blur of box s
hBoxBlur(s: number): ImageFilter Applies a fast horizontal box-blur of length s

Example:

import { BlurFilters } from '@4bitlabs/image';

// Blur the image using a horizontal box, with a box of 3-pixels
const filter = BlurFilters.hBoxBlur(3);
const output = filter(source);

Note: These are very naïve implementations, and should not be used in any kind of production environment.

Readme

Keywords

none

Package Sidebar

Install

npm i @4bitlabs/blur-filters

Weekly Downloads

23

Version

1.0.18

License

ISC

Unpacked Size

35.4 kB

Total Files

27

Last publish

Collaborators

  • 32bitkid