Skip to content

Reconstructing a raster logo as geometry

The logo arrived as a 1254 px PNG. Animating it meant measuring it — lines, an ellipse, a vanishing point.

The logo exists as a single rendered image: chrome, glow and all. An image can fade, but it can't assemble itself, rotate its cube or show its construction lines. So the image had to be measured and turned into geometry that sits exactly on top of it.

Method

  1. Threshold the pixels into "solid" (bright, or saturated cyan) and background.
  2. For each straight edge of the A, walk outward from inside the shape row by row and fit a line x = a·y + b by least squares. Edges are steep, so solving for x keeps the fit well-conditioned.
  3. Fit an ellipse to the outer edge of the orbit, then measure the band's thickness along the ellipse normal every 2.5° and interpolate it with a monotone cubic, so the taper never overshoots.
  4. Overlay the result on the original and check it by eye at 3× zoom.

Findings

  • The orbit is not a circle. Its outer edge is an ellipse with semi-axes 404.8 × 382.7 px, tilted −3.6° — eccentricity ≈ 0.33. Fit residual: 1.15 px RMS.
  • The A's outer edges sit at 30.4° and 29.2° from vertical, so the apex angle is 59.6° — close to, but not quite, equilateral.
  • The A is an extruded solid. Its dark side faces recede toward the letter's axis, which is modelled here as a one-point perspective toward a vanishing point below the crossbar.
  • The crossbar isn't a bar at all: it's a circuit trace with a 45° jog, and the left leg's bottom edge is the trace that leaves the orbit.

Hover the logo on the home page to see these measurements drawn on top of it.

The raster layer

The render still uses the original pixels. To composite its glow over any dark background, black is converted to transparency ("unscreen"):

ts
const a = Math.max(r, g, b); // alpha = brightest channel
const out = a < 4 ? [0, 0, 0, 0] : [(r * 255) / a, (g * 255) / a, (b * 255) / a, a];

One surprise: the first export was 225 KB. Pixels that were almost black became fully transparent, but kept their noisy colour values — invisible, and very expensive to encode. Zeroing the colour under zero alpha brought the 860 px AVIF down to 59 KB.