How it works
A press can only lay ink or leave paper, so grey is made by sampling. A screen of cells, a fixed spacing apart, covers the picture; each cell reads the tone at its centre and prints one dot whose area is that fraction of the cell (or, with lines, a band that thick). The sheet shows a continuous tone strip above the same ramp screened, and a six-colour target. Spacing sets the screen ruling (lines per inch = 72 ÷ spacing in points): halve the spacing and four times as many dots carry finer detail. The angle turns the screen; with four colours the cyan, magenta, yellow and black screens sit at their own angles so they make rosettes instead of moiré. The dashed window can be moved anywhere and opened at 3×, where the cells are drawn so you can see each dot inside its cell.
Use it for
- Teach how printing turns continuous tone into dots: sampling, dot area and screen ruling.
- Show why the four process screens are set at different angles, or why a coarse screen loses detail.
Look elsewhere when
- It is a teaching model with a fixed sheet, coarse screens and simple colour separation; it does not screen your own images or predict press results.
Usage
import { HalftoneProofPress } from './HalftoneProofPress.jsx'
export function HalftoneLesson() {
const [screen, setScreen] = React.useState({ screen: 'round', pitch: 6, angle: 45 })
return <HalftoneProofPress value={screen} onChange={setScreen} />
}Props
| Prop | Type | Default | What it does |
|---|---|---|---|
value | { screen, pitch, angle } | — | Controlled screen: 'round', 'line' or 'process' (four colours), dot spacing 3 to 10 pt in whole points, angle 0 to 90° in steps of 5°. |
defaultValue | { screen?, pitch?, angle? } | { screen: 'round', pitch: 6, angle: 45 } | Starting screen when uncontrolled; Reset returns to it. |
onChange | (settings, info: { reason }) => void | — | Receives the full { screen, pitch, angle } and why it changed: 'drag', 'press', 'tap', 'key', 'screen', 'reset' or 'cancel'. |
zoomed | boolean | — | Controlled 3× zoom on the zoom window. |
defaultZoomed | boolean | false | Starts zoomed in when uncontrolled. |
onZoomChange | (zoomed: boolean) => void | — | Receives the new zoom state. |
labels | object | — | Replaces any visible or announced string: title, formula, screen, shapes (three names), pitch, pitchText, angle, zoom, window, movable, windowText, help, sheet, ruling, dots and reset. |
locale | string | 'en' | Locale for the numbers. |
Accessibility
- Tab reaches Reset, the zoom window, the zoom button, the spacing and angle sliders and the three screen buttons. On the window the arrows move it (Shift moves further), at 1× and at 3×; the sliders take arrows, Page Up and Page Down, Home and End.
- The screen ruling and the number of dots are announced politely when they change; the spacing slider's value includes the lines per inch, and the sheet has a text description.
Motion
Opening or closing the zoom, Reset and the arrow keys at 3× glide the view for --ds-duration-slow; dragging and panning follow the pointer directly. With reduced motion every change lands at once.
Add it to your project
Pro members copy a prompt and their coding agent installs the source, the same way as the free components.
HalftoneProofPress.jsxhalftone-proof-press.csstokens.cssREADME.md
Both files install together. The stylesheet reads the design tokens in tokens.css and carries fallbacks, so it also works alone.







