Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/fidelthomet/dither-dither

web component for image and video dithering
https://github.com/fidelthomet/dither-dither

bluenoise dithering filter image shader video webcomponent

Last synced: about 1 month ago
JSON representation

web component for image and video dithering

Awesome Lists containing this project

README

        

# dither-dither

[demo](https://fidelthomet.github.io/dither-dither/)

`npm i dither-dither`

`import 'dither-dither'`

``

## What?
This is a web component for monochrome dithering. It works on images and videos. It's based on shaders and should be quite fast. It uses a blue noise threshold map. But you can also specify a custom threshold map.

## Why?
- looks nice
- small media files – in most cases you'll get away with using [images](https://github.com/fidelthomet/dither-dither/blob/main/public/hermannstrasse.jpg) and [videos](https://github.com/fidelthomet/dither-dither/blob/main/public/hermannstrasse.mp4) of atrocious quality

## How?
install the package through npm
```sh
npm i dither-dither
```

import in javascript…
```js
import 'dither-dither'
```
…or directly in your html file
```html
import "dither-dither";
```

use
```html

```

## Development

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Compile and Minify Library

```sh
npm run build
```

### Compile and Minify static Page

```sh
npm run build:site
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```