paper-motion

Image Dithering

image-dither

A dithering image filter with support for 4 dithering modes and multiple color palettes (2-color, 3-color, and multicolor options, using either predefined colors or colors sampled from the original im

Install
$ npx paper-motion add image-dither

Adds the background to brand/shader-set/set.json; use it with B.shader().

Tune it, then add it to your kit
Live shader
Parameters
colorFront
colorBack
size
colorSteps
{
  "id": "image-dither",
  "shader": "ImageDithering",
  "props": {
    "fit": "cover",
    "colorFront": "#E9E4D8",
    "colorBack": "#000000",
    "colorHighlight": "#ffffff",
    "type": "8x8",
    "size": 2,
    "colorSteps": 2,
    "originalColors": false,
    "inverted": false
  },
  "image": "assets/materials/material-a.jpg",
  "motion": {
    "param": "size",
    "from": 2,
    "to": 4
  }
}
Defaults

Notes

  • Paper shader ImageDithering (still).
  • Uses an image (installed to brand/assets/materials/); swap image for your own picture or texture.
  • Breathes on size from 2 to 4 so a still shader stays alive.

Spec

Id
image-dither
Type
Backgrounds
Version
1.0.0
Engine
>=0.2.0
License
MIT

Related