Nick Pleydell-Pearce

Personal Lab · 5 min read

From one visual effect to a tool for making many

I was working on a brand project when I was sent some visual references that caught my attention. One in particular had this lovely reeded-glass effect, with colour distorted into vertical strips. I could see it working for the project, but I was more interested in what might happen if it moved.

Illustration: a man on the top deck of a double-decker bus, seen from behind, holding a phone that shows a Claude Code session called Pretty Neat Visualiser with two glass-effect thumbnails and two running tasks

I wanted to change the colours, adjust the glass, randomise the result and see what else I could get out of it. Building something I could keep experimenting with seemed more interesting than recreating a single static image.

Claude Code has become one of my usual design tools over the last eighteen months, so building a system felt like a fairly natural way to approach it. I started wondering whether I could turn the reference into a kind of endlessly variable background and canvas generator.

Making the effect

The first thing was getting the optical effect to work convincingly. The tool uses two graphics passes. One creates the underlying colour field, with soft shapes distorted by noise. The other simulates the glass, dividing the image into ribs that each refract a different slice of what’s underneath.

The controls let me adjust the rib profile, lens strength, blur, colour separation and other details. Changing the lens strength can produce quite different results, including mirrored slices and long pointed shapes. There are built-in presets and colour palettes, but I can also randomise the effect while keeping the typography and chosen colours in place.

A stripped-down TPNV with the same glass effect: try changing the settings.

The thing I enjoy most about it is using it. Changing a few settings can produce something unexpected, which is harder to convey with an animation alone.

Then there was motion. The animation can be set to loop seamlessly, with the moving parts completing whole cycles over the chosen duration. That meant I could make something that worked as a still image or as a repeating video.

A lot of the initial work happened on my phone while I was out. I was specifying and building the system remotely, then finishing things off at home. In all, the tool probably took less than four hours to make. What struck me was how readily I could get from a visual reference to a working tool that produced results I liked.

Once I had a good approximation of the original static reference, and could animate it, the more interesting question became how to use it to make actual assets.

The system around the image

For a campaign, the effect itself is only one part of the job. You might need a square image, a story, a banner and a print piece, all with the same visual language. You also need type and logos to behave properly when the dimensions change.

I built a grid system that scales with the format. Margins, columns, spacing and type sizes are related to a common unit, and text and logos can snap to the grid or to each other. Switching formats reflows the composition rather than simply cropping the original.

The grid, type and artwork reflow as the output format changes.

Typography mattered too. The tool uses HarfBuzz to shape text from the actual font files, including kerning and ligatures, so the preview and rendered output agree. Logos keep their supplied colours; the tool doesn’t recolour them to suit the effect. They sit within a brand kit, with checks for things such as minimum size and contrast.

For export, I can generate PNGs, PDFs, SVGs and MP4s, or export a selection of formats together. The vector files preserve outlined type and separate logo artwork, so they can be finished in Figma or Illustrator. I wasn’t trying to replace those tools. I wanted to take care of the repetitive generation and layout work before getting to that stage.

It didn’t have a name when I started. It was just a tool I was building. Once it was up and running, I called it TPNV, The Pretty Neat Visualiser. A deliberately silly name, but it seemed appropriate.

A project that no longer needed the project

While I was building this, the original brand work was progressing separately. When feedback arrived, the existing direction had gone down well, so there wasn’t really a need to introduce this alternative.

That could have been the end of it. Instead, by that point I had something I enjoyed using and could see applying elsewhere.

I had started with one kind of image and ended up with a tool for making lots of different kinds. Different effects could potentially share the same grid, typography, layers and automated exports.

There was a usability pass as well. It caught things like keyboard shortcuts firing while someone was typing into a field, controls without clear labels and disabled buttons that didn’t explain themselves. Those are small details until you’re trying to use the thing rather than admire the output.

The full tool, which also handles typography, layout and export.

Knowing where to stop

I could have kept going. The obvious next step was to separate the current glass effect from the shared layout, typography and export systems, then add entirely different visual treatments. TPNV can already put your own image or video under the glass. I wondered about going further: giving it a reference image or style and having it work out how to deconstruct and recreate that look.

That would have been a much bigger visualisation tool, though, and I didn’t have a particular job that needed it.

I think I stopped at the right point. The project had shown me what I wanted to know: I could take a visual treatment, work out its underlying rules and turn it into a controllable system for producing assets. I didn’t need to build every possible extension to establish that.

There was a temptation to find something commercial to do with it. Could it become a standalone product? Was it something other people would use? I liked the results, and other people I showed them to seemed impressed, but that isn’t the same as having a product or a validated workflow. So far, I’m its only user.

What feels more useful to take from it is the approach. If I had a campaign that needed dozens of variations in a particular style, I’d now be much more inclined to think about the whole production workflow from the beginning: what can be controlled, which decisions should stay consistent, and what can be generated once and adapted automatically.

I would have liked a reason to take TPNV further. For now, I have a working tool and some results I’m pleased with, and a way of thinking I can bring to the right project when it comes along.

How it was made

  • Claude Code
  • HTML
  • CSS
  • WebGL 2
  • HarfBuzz

TPNV is a single web page written in HTML, CSS and plain JavaScript, with no framework or build step. The glass effect runs on the graphics card in WebGL 2, in two passes. It runs in Chrome from a small local server, works offline, and can’t connect anywhere but its own address. I built it with Claude Code.

Acknowledgements: Type is shaped by HarfBuzz, the open-source text-shaping engine, through harfbuzzjs 1.6.3 (MIT licence), which compiles it to WebAssembly. It’s the only third-party code in the tool.

Exports: PNG, SVG, PDF and ZIP files are written by the tool’s own code. Video uses the browser’s built-in recorder.

On this page: The playable version runs TPNV’s own glass and colour-field code, presets and palettes, without the type, layout, brand kits or export. The two screen recordings show the full tool with no brand kit loaded.

Code: Private, not published.