1.0.7 • Published 1 year ago
defective-pixels v1.0.7
Defective Pixels
A script that adds dead pixels to a webpage every time it's loaded and saves them on the local storage.
- Install the library with:
npm i defective-pixels
. - Import it with:
import generatepixels from "defective-pixels"
- Run it by specifying the number of dead pixels to add and the id of the container where to add them:
generatepixels(100, "container_id")