A standalone filter applying the tone treatment — grayscale, seeded dither and the tone table — to arbitrary content. Applications can use it as a global overlay so surrounding chrome receives the same reduction as the scanned pages.
Scan settings providing the tone treatment.
Seed for deterministic dither noise.
Unique id for the generated SVG filter.
A zero-sized SVG element containing the filter.
const page = createCourseReaderPage("#document");document.body.append( createToneFilter(page.settings, 1971, "global-tone-filter"),); Copy
const page = createCourseReaderPage("#document");document.body.append( createToneFilter(page.settings, 1971, "global-tone-filter"),);
A standalone filter applying the tone treatment — grayscale, seeded dither and the tone table — to arbitrary content. Applications can use it as a global overlay so surrounding chrome receives the same reduction as the scanned pages.