A forest, printed as newsprint

H hides the panel · Space replays · S scrubs

Use these settings

Save this as settings.json next to your component, then pass it as the settings prop.

{
  "mode": 1,
  "ink": "#161616",
  "paper": "#efeadf",
  "paperOpacity": 1,
  "cell": 3.1,
  "angle": 45,
  "lo": 0.02,
  "hi": 0.72,
  "gamma": 1.12,
  "gain": 0.08,
  "soft": 1.2,
  "rough": 0.35,
  "roughScale": 1.4,
  "grain": 0.1,
  "mottle": 0.04,
  "specks": 0,
  "misreg": 0.2,
  "settle": 0,
  "sweepMs": 370,
  "printMs": 460,
  "mergeMs": 440,
  "fadeStyle": 0
}

Then print a photo with them

import { NewspaperImage } from 'newspaper-image'
import settings from './settings.json'

<NewspaperImage
  src="/your-photo.jpg"
  alt="Describe your photo"
  settings={settings}
/>

How to use it

Install

npm install newspaper-image

The smallest use

<NewspaperImage src alt /> shows the default print, standing still. Give it the photo's address in src and a description of the photo in alt.

Props you will reach for

Two things to know

Fade on scroll

Here fade follows the scroll position.

Fireweed, printed as newsprint and fading to the clean photo as you scroll
Scroll to see the print fade to the clean photo.