Lab / RasteriserVector in, pixels out

Rasterise anything.

Pick a shape and move it by tenths of a pixel. Every pixel is lit by how much of it the shape covers, sampled 4 × 4 times per subpixel. Turn things off to see what each step does, then snap it to the grid.

Raster / 24 × 24 pxMode Greyscale AA
Fully lit0
Partial0
Blur0%
Samples / px48
01

Coverage is the grey

A pixel half covered by the shape is lit to 50%. Anti-aliasing is nothing more than that number. Switch it off and each pixel asks one question at its centre: in or out.

02

Gamma decides the weight

Screens are not linear. 50% coverage sent straight to the panel looks too dark, so edges look thin. Encoding with gamma 2.2 makes half coverage look like half brightness.

03

Snapping is design

Snap moves the shape so its edges land on pixel boundaries and rounds widths to whole pixels. Horizontal and vertical edges go fully crisp. Curves and diagonals never will, and that is fine.