Porting the portfolio’s rain engine into the Workbench
The Workbench's Rain Noir theme needed bokeh, rain on glass, grain and neon, all of which my portfolio's engine already had. On 12 October I brought the whole effect system in, about 21,000 lines, behind one set of imports.
The Workbench's Rain Noir theme called for bokeh lights, a rain pane over the case title, film grain, an iris when a whole-screen feature opens, shutter corners when you save, and a neon title on a flagged item. All of that already existed in my portfolio's engine, so on 12 October I decided to reuse it, and recorded the decision as an architecture note.
The whole system, behind one door
The first plan was to pick parts: the rain, the window, the glass. I changed it to import the entire effect system for now, because later I'll build a separate library of components to port instead. So the whole system went in, about 21,000 lines of effects code, with a list of every change made to fit it.
The app reaches it only through one set of imports, so that the future library can replace it without touching the rest of the app.
Rain on the case title
The rain pane sits on the case title, over the reporter's own photograph. It rains only where a photograph is behind the glass.
Under the app's calm-motion setting, or reduced motion, it shows a single still of the rain after it has stopped, and the water simulation is switched off.
Sources and notes (4)
- ADR-0009: Rain Noir effects — the notes this was written from: the decision and Ony's words
- ADR-0013: bloom on run lights — the notes this was written from
- Rain system (onysnow-studios) — the engine's own notes
- Rain reference catalogue — the study of 117 rain-on-glass photographs behind the engine
Journalism WorkbenchAll 12 parts →
