This site: an engraved bouquet a machine can see, as an agent reads it

This is what an AI reads: the same facts as the page, as plain text. Raw file: /portfolio/dcdc.md

# This site: an engraved bouquet a machine can see

> My personal site, where every picture is engraved by Java code and the homepage is a still life you explore the way a computer vision model would: hover a flower, or the rock, and it's detected, with a box, a label and a thermal view.

- Role: Designer and developer
- When: Oct 2026 – present
- Team: Solo, with Claude Code as a pair programmer
- Tools: Java 21, Astro, TypeScript, CSS, Playwright, axe-core, Claude Code
- Outcome: The homepage paints its picture in 456 ms on an emulated phone and weighs 368 KB, held there by automated checks that every change must pass.
- Links: [www.dcdc.ooo](https://www.dcdc.ooo)

## The problem

I wanted one place for my projects, art and writing that I'd enjoy opening every day, and that a stranger could still find their way around in seconds. I set two rules before building anything. Every picture is drawn by code: no hand-drawn art, no stock and no AI images. And every target is a number a machine checks, not a feeling I have about the page.

## What I did

**The engraving.** All the art is plain Java 21. Each flower is built from hatching that follows its form. Then the whole picture is re-engraved as horizontal lines that swell where the drawing is darker and take the nearest ink, after an old engraving of a hibiscus. Fixed random seeds mean every render comes out the same, and the outputs are committed, so the live site never needs Java.

**The still life.** The homepage is one picture. Four flowers stand in a thin glass vase beside a streaked quartzite rock, on a light mirror under a film of water. Each flower is a page: wood sorrel for projects, moonflower for the tech blog, lily of the valley for art, and a cherry branch, drawn after my own pen drawing, for the personal blog. Nothing is labeled until you look closely.

**The detection.** Hover over a flower, focus it with the keyboard, or tap it once on a phone, and it's "detected". A YOLO-style box snaps around it, a yellow tab names the page with a confidence score, and its lines turn thermal. The heat comes from the drawing itself: dense hatching reads as hot, blurred and mapped to the inferno color ramp. The rock is the portfolio, and its label reads `portfolio 0.62`: a flower detector that isn't sure about a rock.

[Figure: The homepage at rest: an engraved bouquet in a glass vase beside a rock, on a light mirror, with 'dan coyne' small beneath it.]

*At rest, nothing is labeled and nothing moves.*

[Figure: The homepage with the rock detected: a box around it, a yellow 'portfolio 0.62' label, and the rock drawn in thermal colors.]

*Hover over the rock and it's detected. The same works for each flower.*

## Decisions

- **Pre-rendered heat instead of live effects.** Each subject gets three heat frames drawn by the Java sketch, cross-faded in CSS by opacity alone. Animated SVG filters redraw every frame and stutter on Safari and phones, and these frames cost nothing while nothing is detected.
- **Heat drawn as lines on the same rows.** The detected subject's own lines seem to change color, so it reads as an overlay, not a swap.
- **Each subject's heat scaled to its own range.** Dainty flowers carry little ink, so measured on one scale they'd barely glow. Scaled separately, a sparse spray of wood sorrel glows as clearly as the moonflower.
- **The rock's heat follows its tone.** The rock is painted in translucent tone rather than hatching. Counted as solid ink, it would come out as one flat hot block. So its heat follows how dark each streak is: hottest on the rust and black streaks, coolest on the pale top.
- **Hover areas follow the outlines.** The Java sketch traces each subject and exports the outline as a CSS `clip-path` polygon, so overlapping flowers don't steal each other's hover, and the rock stops at the waterline instead of taking its reflection.
- **Checks as gates.** Whenever a change is finished, a hook runs the typecheck, the build and a Playwright suite against the targets. If anything fails, the change isn't done.

[Figure: The rock side by side: on the left as engraved, with rust and black streaks; on the right detected, its lines in thermal colors that are hottest along the streaks.]

*The rock at rest and detected. Its heat follows the streaks instead of filling the shape.*

## Result

Measured on 27 October 2026 by the site's own checks (Playwright and Chromium on an emulated 12 Mbps, 70 ms phone connection with a 4x slower CPU, plus axe-core):

- The homepage's picture paints in 456 ms. The target is under 1 second.
- The whole homepage transfers 368 KB at phone and desktop sizes. The limit is 400 KB.
- Nothing shifts as the page loads (layout shift 0), and nothing moves at rest.
- Each of the five subjects is detected alone by mouse, by keyboard and by a first tap on a phone, and axe finds no accessibility violations on any page.

## What's next

Engraved frames for these portfolio plates, and maybe a candle, a mirror or a garden ladder joining the still life, all drawn by Java like everything else.

## Sources

- dancoyne236/personal-website: SPEC.md and design/aesthetic.md (October 2026)
- The Java sketches in art/: the flowers, the bouquet, the rock, and the shared engraving, imprint and heat code in art/lib/
- npm run budgets, 27 October 2026: Playwright and Chromium with an emulated 12 Mbps, 70 ms connection and 4x CPU slowdown, plus axe-core
- Commit history from 20 October 2026

Part of Daniel Coyne's portfolio: https://www.dcdc.ooo/portfolio (plain text: https://www.dcdc.ooo/portfolio.md)