How halftone dots fake shades of grey with one ink
A printing press has one black ink. It cannot print grey; it can only put ink down or leave the paper bare. Halftone gets round that with dots too small to see one by one. Big dots close together look dark, small dots far apart look light, and from reading distance the eye blends them into grey. Newspapers printed photos this way from the 1880s, and the dots became a style of their own in comics and pop art.
The rule is that the ink in each cell matches the darkness of the picture there. Take a cell 10 pixels wide over an area that is 30% dark. The cell has 100 pixels of area, so the dot needs 30 of them. A circle of area 30 has a radius of 3.1 pixels, so that is the dot. At 78.5% darkness the dot touches the four sides of its cell; past that, it is clipped by the cell and spreads into the corners, so neighbouring dots merge and leave small white holes, as on real newsprint. At 100% the cell is solid ink. Each dot edge is a smooth ramp one pixel wide, so the dots are round and not jagged.
The grid is set at 45 degrees, the angle printers use for black, and its spacing is a share of the picture's long side. Newspaper uses 1.2%: a dot every 48 pixels on a 4,000 pixel photo, and every 9.6 pixels on the 800 pixel preview. The preview therefore has the same number of dots as the download, only smaller.
Colour comic adds the other three printing inks. Each pixel is split by a simple formula: black is the share all three colours lack, K = 1 - max(R, G, B), and cyan, magenta and yellow make up the rest. Each ink gets its own screen at its own angle, 15 degrees for cyan, 75 for magenta, 0 for yellow and 45 for black, and the inks are laid over white paper by multiplying. Pure red comes out as overlapping magenta and yellow dots, which is how a press makes red too.
The limits: the colour split is for the look, not for a press. There is no colour profile, no ink limit and no removal of colour under black, so a print shop needs a proper separation from a design program. Transparency is kept as it was, and fully transparent areas count as white paper. The download keeps JPEG, PNG and WebP, but JPEG compression blurs dot edges, so PNG is the better choice for crisp dots. The largest image is 24 megapixels.