What happensinside a pixel.
Every line you draw ends up as a grid of tiny lights. SUBPIXEL teaches designers what the screen does with their work: anti-aliasing, subpixels, hinting, half pixels and density, so you can design for the pixels you actually get.
The half pixel.
Here is a 1px line, drawn at left: 4.5px. Pixels have no halves, so the dashed guides show where the real boundaries are.
The line covers half of column 4 and half of column 5. Both light at 50%. One sharp line becomes two grey ones: twice as wide, half as bright.
Snap to the pixel. At left: 4px the line fills column 4 exactly. One pixel, fully lit, full contrast. Round your coordinates, not your hopes.
left: 4.5px;4px;
width: 1px;
}
One icon. Three densities.
You design a 16px icon. A 1x screen draws it with 16 × 16 lights. A 2x phone uses 32 × 32 and a 3x phone 48 × 48. Same size on the glass, very different amounts of detail. Curves only look smooth when there are pixels to spend on them.
Why 1px borders look different on retina.
On a 2x screen a 1px border is two device pixels thick. Type and icons got sharper, the border did not get thinner, so it reads heavy. That is why native apps use 0.5px hairlines on dense screens. On a 1x screen half a pixel does not exist and becomes a grey smear.
Eight lessons. All of them pixels.
Stop guessing. Rasterise it.
The rasteriser
Draw a circle, an angled line or a letter. Toggle anti-aliasing, subpixels and gamma, nudge by tenths of a pixel, snap it, then export the grid as SVG.
Crisp or blurry?
Ten rounds of spot the snapped render, each one harder. Then Pixel push: nudge an icon until every edge is crisp, scored by the blur that is left.