1.0.18 • Published 11 months ago

@4bitlabs/blur-filters v1.0.18

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

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

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

Filters

MethodDescription
gaussBlur(sigma: number): ImageFilterApplies a gaussian blur to the image in-place
hBlur(sigma: number): ImageFilterApplies a gaussian blur, only on the horizontal axis
boxBlur(s: number): ImageFilterApplies a fast box-blur of box s
hBoxBlur(s: number): ImageFilterApplies 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.

1.0.18

11 months ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.10

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago