Ollin

Ollin design notes

On this page

The engineering design intent behind the planned work in ROADMAP.md. The roadmap is the short version (what's planned and how to help); this is the long version (how each piece would be built, the specific APIs involved, and why). A couple of shipped items stay only where their design rationale still guides future maintenance or evolution (extending the examples set, the Swift-idiom track); anything fully done and self-contained lives in its own doc or CLAUDE.md, not here.

These notes assume Ollin's two ground rules: it targets Apple platforms only (no cross-platform abstractions), and the bare p5-style API is sugar over a public, typed core, so a feature is built on the core first and given the bare call second. Geometry-emitting calls take a draw verb prefix (drawCircle, drawRect, and so on).

Swift Playgrounds and iOS

The design home for the leg that runs a sketch on the phone and the tablet. The canvas is one view on either window system and Apps/OllinSketchApp is the reference project for wrapping a sketch as an iOS app; these notes carry what's ahead: the Swift Playgrounds on-ramp (the closest Swift gets to the p5.js "open the editor and type, see it move" onboarding, on-brand for the "learn it in an afternoon" goal), the tethered edit loop, and the smaller device affordances. The roadmap section is The sketch on a phone, and Swift Playgrounds.

  • Playgrounds questions, in dependency order. An App Project (.swiftpm) is a Swift package whose manifest declares an iOSApplication product through AppleProductTypes, built by the Playgrounds app's own build engine and bundled compiler, not the Mac's toolchain. So: (1) the engine is the gate. The shipping app (4.7) will not compile a C, C++, or Objective-C target ("Clang Target Not Supported", which Apple's developer support confirms on the forums) or a .metal file ("Metal Files Not Supported"), both strings in its PlaygroundBuild.framework. A .metal file carried as .copy, copied and never compiled, is not refused: it travels into the app and compiles at run time, so the shader segments need no change (they could also travel as text under another extension or as Swift strings). The core links six such targets (libtess2, Clipper2, the shared shader-struct header, the sky model, tangents, spectral data) and ships its shaders as .metal segments. A prebuilt core is the way around in principle, and outside the app it works: built with the app's own Swift as a dynamic library with library evolution on, its C imports made internal, and its resource bundle inside the framework (where OllinResources.resolve already looks), it draws in a Catalyst app. The app does not load it, in any shape. Its project model materializes Swift source targets only. A binary target is dropped whether it sits in the project's own manifest (the XCFramework listed as a folder of code, "cannot find module") or in a package fetched from the web with the framework committed as plain files (the package resolves, then the build stops at "a reference to a missing target"). A static C library in an XCFramework is dropped the same way, and so is a system-library target, a module map over a header with nothing to compile, in the project or in a package. A binary package fetched as a zip stops the app earlier, at a deliberate trap in its package resolver: the resolver's library starts no subprocess on this platform ("subprocess invocations are unavailable"), and unzipping takes one. One more fact shapes a sketch in an App Project: its root target reads its resources from Bundle.main, since the build synthesizes no Bundle.module for the target that is the app. A prebuilt core also fixes #if DEBUG when the framework is built, so the parameters button would need a rule of its own there. After each app update, the check is a project that depends on a binary target, and one with a system-library target, built in the app: the day either target is materialized, the prebuilt route opens; the two refusal strings in its build framework are the cheaper first look. Two smaller facts wait behind that gate. Five public members hand a sketch the shared C structs (drawParticles on a GPU buffer, neighborStep, drawMesh(instances:), Camera3D.matrices, SpatialHash.gridBuffer), so a prebuilt core ships COllinShaders beside it, as a second binary or as generated Swift, since a header-only module is a system-library target and the app drops those. If the engine never takes C-family code, the other route is a Swift-only edition generated from this tree: the spectral data and the sky model are tables and a few hundred lines, MikkTSpace and the shared header a week or two each (the header's structs generated with their layouts checked against the C), Clipper2 has a Swift port that its upstream project lists, and libtess2 is the long pole at several weeks. And the app bundles Swift 6.2 against the tree's 6.3 floor (its PlaygroundCompiler.framework carries the version string, and its own modules are built for ios-macabi, the Catalyst preview). That gap is a dozen or so errors across as many files under the app's own SDK, each fixed by naming a result type: an Ollin type writable as a number literal gives 6.2 a second reading of 2 * x, which 6.3 settles by itself. (2) The dependency arrives by git URL, which the public repository serves, and that is also the only shape a tablet can use. A local path: dependency is less of a desk bench than it looks: the Mac app is sandboxed with free access to /Applications/ and ~/Documents/Playgrounds/ alone, so a checkout anywhere else reads to the user as having no access to the package, and pointing at one means keeping a copy of the tree under that Documents folder. (3) It runs on real GPUs, the Mac's or the tablet's, so the renderer's device tier applies and the simulator wall is irrelevant here; don't chase the simulator to test Playgrounds. The Mac app previews an App Project through Mac Catalyst, so a platform seam there keys on the operating system rather than on whether AppKit imports, and a runtime shader compile names its language version. Prefer the Swift Playgrounds app's App Projects over the semi-deprecated Xcode Playgrounds throughout.
  • The starter is a generator kind, not a hand-kept sample. ollin new writes packages, and an App Project is one, so the Playgrounds starter is a ProjectKind beside the others rather than a checked-in sample that rots: the manifest with the iOSApplication product, a host file in the reference app's shape (a SketchView in a WindowGroup, SwiftUI.Scene spelled out since the framework has a Scene of its own, safe areas ignored), and one small touch-driven sketch, seedable from the examples the way --from already seeds. Unlike the ios-app kind, it needs no Xcode project and no signing team. The host file can go too, if the framework owns the host: on the Mac @main on a sketch already opens its window, and the same entry on iOS would open a full-screen host, so a project is the manifest and one sketch file. Playgrounds gives an app no way to add controls to its own window, so the parameters live in the app: the inspector's ParametersListView, which already compiles for iOS, as a side panel on the tablet and the Mac and a sheet on the phone. The host serves Xcode projects and ollin phone as well, and it follows the gate above rather than leading it.
  • Keep shaders Playgrounds-safe. Swift Playgrounds' support for SwiftPM build-tool plugins is unreliable, so don't go plugin-only for shaders. Runtime source compilation stays a first-class loader, and it is also what makes a shader edit instant on a device.
  • Scope inside the sandbox. Drawing, touch, the parameters, and the shader compile are the Playgrounds surface. The export tier writes files where the sandbox has opinions, so it stays desk work until someone asks; nothing about drawing needs it.
  • Beyond the cable: the sketch on a phone that is not here. The installed loop needs pairing, which reaches a phone on the cable or the same network and never one across the internet, since an install goes through devicectl. The picture stream is the way to a phone anywhere, and what it still needs is a transport past the usbmux tunnel. The sender is handed a connected socket and the phone's listener already accepts on every interface, so the local network is the short step: find the phone by Bonjour and dial it directly. Across the internet the phone has no address a Mac can dial, so it needs a rendezvous both ends reach out to, which Ollin does not run. Any network path also needs pacing the cable never asked for: a bit rate that follows the measured throughput, and a way for the phone to ask for a keyframe after a loss.
  • The tablet keyboard. UIKit press events (pressesBegan/pressesEnded) feed the same key path the desk view feeds, so keyIsPressed and the key callbacks work with a hardware keyboard on a tablet.
  • A sketch's 3D in the simulator. The simulator runs the 2D path and draws no mesh: a simulated GPU gives a shader 31 texture slots, and the lit mesh fragment names more. Two routes would let a first look at a 3D sketch need no phone. One fits the fragment's textures into the slots there are, by packing the ones that are always bound together into arrays. The other builds the fragment without the arguments a simulator cannot use, behind a build constant, the way the traced paths are folded away. Either has to leave the Mac's and the phone's fragment as it is, bit for bit, so the snapshot suite decides it. Behind that wall sit a point light's shadow there (no cube-array textures, so no map) and the pipelines nobody has tried: a marched field, a point cloud, instanced meshes.
  • A gate for the simulator build. Preflight compiles the framework for a generic device and nothing compiles it for the simulator, whose SDK lacks a module the device's has, so an import can break it unseen. One more build on a framework change would hold it, at the cost of its minutes.
  • Verification: iOS builds verify on a Mac with xcodebuild -destination 'generic/platform=iOS'; ollin phone --simulator runs a 2D sketch with no phone; anything hands-on needs the device.

Color additions deliberately kept out

Rationale that still gates future color work:

  • Other color spaces stay out. Classic Lab/LCH (the 1976 space OKLab was built to fix; interpolating through it bends blues toward purple), CIECAM16/JCh (a full appearance model that needs viewing-condition parameters; OKLab was fitted to give most of that benefit without the machinery), and DIN99/DLCH (an industrial color-difference standard). Any of them can arrive later as a plain conversion if matching an external spec calls for it.
  • Further curated palette collections stay license-gated. Collections scraped from ColourLovers and similar sites are not license-clean and stay out; anything added must carry a permissive license the way the ColorBrewer data does.

Layered effects and compositing

OPENRNDR-style effects that compose in layers: draw into off-screen layers, run filters over them, composite with blend modes. The substrate (renderTarget / withTarget / filtered / combined / postProcess / generate / feedback and the compose { } DSL) is inventoried in CAPABILITIES.md; what belongs here is growing the catalog on top of it. The reference menus guide what else to add and how to shape it: AsyncGraphics (its Graphic is an MTLTexture, effects are functions returning new graphics, plus a blend/stack model; borrow the compositing architecture, not its async call shape), SwiftUIShaders (MIT, a menu of forty-odd post-process effects such as holographic, kaleidoscope, datamosh, and thermal, to mine and reimplement), and ofxFX (MIT, Patricio Gonzalez Vivo: composers, the bokeh/ripple/flow passes still worth taking). More two-input ops (layer-blend variants, chroma keying, wipes and other transitions) slot in as further Combine cases. Same stance throughout: study and reimplement, credited in ATTRIBUTION.md.

  • What the effect survey left, each a look change to decide on its own. Both read a gray as the light it stores where every other effect reads it as written.
    1. Two readers of a gray still on the stored value. The maps (.displace, the .vector and .angle fields of .lineIntegralConvolution, the luminance of .mask) and the tone filters read a gray as the sketch wrote it. Two neighbors do not, asked on 2026-11-15 and left for a ruling of their own. .disperse scales its split by the aux's luminance as stored and gives the aux's alpha no say, so Color(white: 0.5) asks for 0.21 of the amount and a soft white mark on a clear layer ends in a step. .distanceField(from:) over brightness or a channel cuts the stored value, so a threshold of 0.5 falls at a written gray of 0.735. By reading, contour, toon, colorama, duotone, and gradientMap key on the stored luminance too; the last two color data fields, where the stored value is the number meant, and the halftone family lays ink by light, which is the stored value by right.
    2. A generator's middle is not mid-gray. A pattern generator mixes its two colors in light, so the even mix in the middle of Generator.noise is a stored 0.5, the written gray 0.735 (a patch three cells across measured a median of 0.82). As a displacement map it pushes one way on average, and as an .angle field its headings crowd toward the far end of the turn. The route today is the generator's .normalMap, which is centered. A form that writes the value itself as a gray, the noise value n as Color(white: n), would make a generator a map directly.
  • A loop that holds its light on an exported page. The page keeps every surface in RGBA16F whatever precision the Mac's layer has, so a feedback layer or a kept canvas on a page still loses what half float loses on a GPU that stores a float cut off: a fade at 0.98 is 3.4% dark after a hundred frames, where the Mac's holds its number. The page wants a layer's precision recorded and followed: a single-precision surface (RGBA32F) for a loop's pair, its multisampled buffer, the surface its resolve passes through, and every filter over it, where the browser can draw into that format and filter it (EXT_color_buffer_float and OES_texture_float_linear, and a sample count for the format read from getInternalformatParameter), and the half-float surface it has today where it cannot. The page's pool of per-frame surfaces is keyed by size alone and would need the format beside it.
  • A scene in a layer, lit by a layer made the same frame. environment(.feed(layer)) is baked twice a frame, before the layers are filled and again after them. A scene on the canvas reads the second bake and reflects this frame's layer. A scene drawn inside another layer is lit during the fill, from the first bake: a layer the sketch keeps gives it the frame before's picture, and a layer made in draw() gives it the neutral sky, every frame. The bake wants a place in the fill order instead: after the fed layer is filled and before the first layer that draws a lit solid, which then waits on it as it waits on a picture it draws.
  • A shader that reads and returns light as it is stored. A picture shader works in sRGB: sample and sampleAux hand a layer over through the curve that stops at white, and what shade returns is decoded as sRGB. A shader that works in light reads with sampleRaw, takes the alpha out itself, and returns through linearToExtendedSrgb. A filter shader may want to say once that it works in light, and read and return premultiplied linear color as stored, the way a simulation kernel returns its state. A reader that hands over straight color with the light past white kept, beside sample, is the smaller half; changing what sample itself returns would move every filter shader over a layer that holds such light, so it is a look change with a sweep.
  • A persistent layer wherever a layer goes. A combine takes a Feedback, an Accumulator, or a SimField as either of its two layers. Three places take a plain layer alone: a field's inputs and modulation, Visual.layer(_:), and makeWindow(showing:). And a combine reads a feedback layer's picture of this frame, never its last one: previous is an image, so a loop that wants the last frame through a combine (the last frame displaced by a map, drawn back into the layer) goes through a plain layer that draws previous first.
  • A measured field that is exact near the edge. Within a pixel of an edge, .distanceField is the distance to the nearest of a row of discrete seeds, one per crossing found between two pixels, so a pixel lying between two seeds along the edge measures up to about 0.3 pixel long. The layer styles show it (measured 2026-10-08 on a 360-gon's multisampled edge): a one-sided outline under two pixels wide carries up to 0.06 pixel less than its width and a centered one up to 0.125, and the bevel takes its direction from a Sobel stencil two pixels wide because the direction channel turns by up to atan(0.5/d) between neighbors. The canonical answer is the anti-aliased Euclidean distance transform of Stefan Gustavson and Robin Strand (Pattern Recognition Letters, 2011): an edge pixel's distance to the edge estimated from its own coverage and the local gradient, with the offset to the edge carried by the flood. Measure it against the current seeds first, on the zero contour, cuttingTheFieldGrowsTheShapeByThatMuch, the outline widths, and the flat light that shares the field, since it moves every consumer of the field.

3D mode

2D stays the default and most sketches stay 2D, but 3D is a mode in its own right: a sketch opts in by setting a camera and, on the same Metal core, draws depth-tested point clouds and lit solid primitives, with richer shadows and materials as the mode grows. The iPhone point cloud renders through it, and visionOS and AR build on it. openFrameworks and OPENRNDR set the capability bar here, so the target is known. (The foundation, from the camera, depth buffer, and transform stack through point clouds, meshes, lights, materials, and cast shadows, is inventoried in CAPABILITIES.md; the notes below build on it.)

  • The further scene-import legs. Over the structure-preserving import and animation playback a loaded Scene gives (see Docs/3D/Scenes.md): vendor EXT_/app-specific glTF extensions beyond the ratified KHR_ set.
  • Material-from-file refinements. A merged loadMesh model uses its first base-color material (glTF/USD/OBJ-MTL). The UV-origin convention for a Model I/O imageFromTexture result is unverified and may need a v-flip. A material carries one wrap mode for its whole map set, read from the file's first map; a format that gives each map its own sampler (glTF does) would need a wrap per slot to reproduce exactly, which no exporter seen so far asks for. The OBJ reader welds corners by their (v, vt, vn) index triple, so a scan that writes one vt per corner (a Polycam export arrives with 141,291 corners over 27,109 positions) comes back with one vertex per corner, which also triples every per-vertex CPU pass over it. Welding by value, the same position and the same uv within a tolerance and the same normal, would fold those back to the positions a chart seam does not split; the tolerance is the design question, since a seam is exactly two corners at one position with different uvs.
  • The light grid's next two steps, if the cost ever asks for them. The per-tile cull spans the whole depth range, because there is no depth pre-pass to bound a tile by: a depth-bounds refinement (min/max the tile's own depth, then cull against that slab, which is the difference between a tile and a cluster) tightens it for a scene with lamps at many depths. And the inline path below OLLIN_MAX_LIGHTS culls nothing at all, which is why a measured 16-lamp culled frame beats an 8-lamp inline one; culling every lit frame would pick that up, at the cost of the byte-identity the whole 3D reference set rests on, so it is a 1.0-shaped call rather than a free win.
  • What a heavy field's passes do not reach. A marched field is divided into passes only where it has a target of its own to be drawn into: on the canvas, and in a directional or spot light's shadow map. A field in a layer, under a blend other than the ordinary one, or in the hidden layer depth of field draws is marched in one pass, and so is a mesh's own march of a field's shadow under a point or traced caster, on the canvas at full resolution and in any layer whose solids receive it (a layer has no reduced-resolution pass to read the cast from); each wants the same division, in the layer's target or in a pass of the receiver's. Sixteen passes is also a ceiling, since a pass's share is whole 8-pixel blocks of a 32-pixel tile and a tile has sixteen. Past it the march itself would be divided along the ray: a pass takes a share of the steps and hands its place on the ray to the next through a texture, which divides one pixel's work rather than a tile's pixels and has no such ceiling. Two measurements it rests on are an M2's alone and want reading on another GPU: the grain the GPU shades in (blocks of 8 divide the work at about one and a half times its total, blocks of 16 at almost none, single pixels not at all; Scripts/benchmark.sh raymarch prints the table), and the budget, which is half of the heaviest pass that has drawn clean. What the GPU's check measures exactly is still not known, and the 126-capsule shadowed field has never been drawn in one pass, so whether it would fail there is open.
  • A field's skips, further. A skip costs one instruction for every far operand, so a field of separate parts reads a little over half its program a step, and a chain that approaches the point evaluates every link on the way in. Three things would take it further, each with the same condition, that the field stays the same bit for bit. A chain link that is one leaf and its combine could be one instruction (the leaf's own distance is its test, so nothing is stepped past and nothing is added: 64 capsules would read 64 instructions where they read 74 with skips and 127 without). The operands that carry no bound could be given one: an ellipsoid reads below its box's distance off its axes by up to the ratio of its radii, so its slope is that ratio if it can be proven; an extruded flat field needs the 2D shapes' own bounds; the Mandelbulb's estimate has none. And the page could carry the skips, which needs them written whether or not they can be taken, so the program's shape does not change as the parts move.
  • A reflecting frame's surfaces that do not reflect. A frame with traced reflections on draws every lit kind through the build that carries the reflection and refraction paths, and on a GPU that traces in software that build costs each lit pixel about thirteen times a mesh's shading and twenty times a field's, whatever the surface is made of. The build is chosen once for a pass. It could be chosen for a batch: a batch whose material and lights can reach no reflection path would draw through the build that traces shadows alone, and only the surfaces that reflect would pay. The measurement comes first (a frame of matte and mirrored surfaces both ways), and then the rule for which materials can reach the paths, read from the fragment and not assumed.
  • The translator's limit note. The GPU's offline translator prints Max Unstruct ID ... exceeds supported limit for every lit fragment compiled with the traversal (870 for the mesh fragment, 871 for the field's; 439 and 440 before one ray query served a fragment) and nothing for a build without it. What passing the limit costs is not known, since the fragments that print it draw correctly. It wants a reduced case, and a report to Apple if @eaviles chooses, and it is the first thing to read if a traced frame misbehaves on that class of GPU.
  • Build order. Softer shadows (and supporting more than one caster at once) are the rendering-heavy step. The tier-one material recipes are pure data over the existing light/material model with no renderer change, so they land cheaply (the way the lighting presets did): a Material surface beside specular/specularSharpness. Each step is usable on its own.
  • visionOS is a different render loop. Immersive rendering doesn't use MTKView/SketchRunner.draw(in:); it uses CompositorServices (LayerRenderer) driven by a manual render thread, plus ARKit world tracking. Keep the per-frame loop behind a seam that either an MTKViewDelegate or a visionOS layer renderer can drive, rather than assuming MTKView everywhere.
  • Reference. swifty-creatives is the concrete study: it ships both a normal MTKView renderer and a visionOS RendererBase with a manual renderLoop() over LayerRenderer, and it's 3D-first (camera, depth, box and 3D text). Borrow the structure (camera plus depth pipeline plus dual render loop) and write our own.
  • Ray-traced reflection refinements. The subsurface diffusion behind Material.scattering does not reach a reflection: its blur runs over the primary view's own buffer, and the transmittance half needs a caster's depth the traced direct light never reads, so a skin or marble body arrives in a mirror with its shading unsoftened. That is bigger than the compact per-geometry finish record the other finishes are stored in, which is what makes it the one left.
  • Richer 3D physics: the solver's own remaining gaps. The one thing still ahead is soft-body reach, and it is upstream's rather than Ollin's: self-collision and cloth-against-cloth are gaps in the solver, so a folded sheet passes through its own layers, and tearing needs a shared vertex split and a rebuilt constraint set mid-simulation, which it cannot do at all. Both stay out until the library grows them. The solver's volume constraints (tetrahedra held at their rest volume) stay out for a different reason, a measured one rather than a missing one: built and probed against the shipped pressure, they tie on holding a weight, tie on coming back from a dent, and lose on coming back from a hard squash, because their residual is formed from an unsigned volume and so reads an inverted tetrahedron as correct, where a gas law's push grows without bound as the space shrinks. The numbers and the two things that would reopen it (a vertex-follows-tetrahedron binding, or a signed volume constraint) are in ARCHITECTURE.md. The solver's neighboring hair module stays out for four measured reasons. It accepts no force, so the only way to move a strand is to move the head, where Ollin's cloth and rope examples are driven by applyForce. It collides only with ConvexHullShape, and Ollin's figures are meshes and capsules. It requires an authored groom and a skinned scalp, where a sketch generates its own geometry. And the rod family already exposed carries 20,000 simulated strands in a 60 fps frame against its 2,500, so the Metal backend it needs (49 shaders cross-compiled and packaged, Objective-C++ admitted into the C bridge's target, a new draw path for a foreign compute buffer) would buy a strand count Rope3D already reaches. The measurements and the reopening bar are in ARCHITECTURE.md; if hair is wanted before then, build it as a multi-strand Rope3D (one soft body holding many rod chains) rather than from that module. When they arrive, the shipped rules still apply: land it as more capability on the existing surface (a parameter on addSoftBody, a call on SoftBody3D), never a parallel system; keep the C bridge flat-POD extern "C" with JPH never reaching Swift; keep the no-pixel-snapshot policy (determinism is per-binary, so behavioral tests pin each slice) and unitsPerMeter as the one scale bridge; and ship an example, tests, a Docs/Simulation/Physics3D.md section, and Guide Ch 32 growth together.
  • Lines in 3D, where they do not go yet. Three outlets leave a line with 3D points out and could carry it. A recorded Batch has no camera, so its lines would expand at replay against the camera then active, the way a recorded point cloud draws through whatever camera drawBatch meets. A spatial export could write USD BasisCurves with a width per point, which is a line rather than a surface, and a dash as separate curves. And a web page could replay the line's world points and offsets through a WebGL vertex stage that does what ollin_line_vertex does, with the frame's camera recorded beside them; a page whose 3D is only lines would then cross without falling back to video.
  • Lines in 3D, what a stroke has that they do not. Four things. A strokeMedium shades a ribbon in its own coordinates (how far along, how far across), which the line's vertices do not carry: it wants the two coordinates beside the coverage pair and the media's shading in a build of the line fragment, chosen per run so a plain line pays nothing. A picture for a brush's tip wants a textured stamp in the same pipeline; its stamps draw as discs today. A square stamp goes through the whole stroke expander and costs about two and a half times a disc; laid out directly, as the disc is, it would cost the same. And a mesh's feature edges are placed per copy on the GPU, so a dash on them is a cut in the fragment, by the distance along the projected edge or along the edge in space.
  • Feature edges on a mesh field, and in call order. A MeshField's copies draw their faces without their feature edges: the field's GPU cull writes the arguments of the solid draws, and the edges would need the same visible-copy list to write theirs, one more indirect draw per entry. A field that wants edges today draws its copies through drawMesh(_:instances:). Separately, meshes drawn one call at a time put each mesh's edges straight after its faces, so where two solids nearly touch, within the depth pull, the edge of the one drawn first can show through the face of the next; a run of mesh draws could hold its edge batches until the run ends, as an instanced call does by construction. Both wait for a sketch that shows them.
  • Lofting: what is ahead. A loft matches its sections' contours in order and leaves out a contour some section lacks; a hole that closes on the way (a tube whose bore pinches shut) would want the partnerless contour to shrink to its own center, the way a 2D morph handles it, with the cap at that end filled as if the hole were not there. The blend across unevenly spaced stations reads the sections as evenly spaced (a uniform cubic, the one Curve3D(curveThrough:) uses), so the surface's speed along the path changes at a station while its direction does not; a cubic whose knots are the stations themselves would smooth that too. On a closed path the last section joins the first as it was drawn, so a loop whose sections turn progressively twists at the join rather than spreading the turn round, which the path's own frames do for their torsion. Each is a small addition to Mesh.loft when a sketch asks for it.
  • Volumes: what is ahead. The march (ShaderVolume.metal) composites after a pass's geometry and reads its resolved depth; the pieces below extend it without changing that shape. Lighting the medium at a coarser rate, measured and not taken: lighting every other lit step and interpolating between the two ends of a run, or simply holding the last light, saved nothing on the M2 at 1080² in the saturated harness (interpolated 10.98 → 11.92 ms on the plume example and 10.38 → 11.17 on a dense 64³ cloud; held 10.59 → 10.63 and 9.94 → 9.84), so the march's cost is in its steps and their reads rather than in the light, and every step is lit in full. What is left of the idea is the view-independent part of the light arriving at a point (everything but the phase) worked out once per frame at the grid's lattice, folding the solids' shadow-map tap into the transmittance grid, which turns each lit step into one trilinear read per light in place of a shadow tap, a grid read, and the octaves; it is worth trying only once a measurement says the light is the cost, and its price is a solid's shadow through the medium resolved at the lattice rather than per step, a softer shaft edge on a coarse grid. The rest of the scene's light: point (cube) and traced casters do not shadow the medium, and the area kinds scatter nothing. Each is a read the march does not make yet. The bounce's reach: the octave sum thins only the medium's own shadow, so light never bends around a solid into its shaft through the cloud, and a diffusion term on the shadow grid (a blurred copy read as the bounced light's even part) is the way to that if a picture asks for it. Two volumes that pass through each other order as wholes by their boxes' centers; marching them jointly over their sorted intervals would interleave them. A glow that follows a ramp: the classic transfer function, a Ramp from the grid's value to the glow's color (fire from a temperature field), would be a 1D lookup beside the grid.
  • Motion for copies placed on the GPU. A drawMesh(_:instances:) list inside withMotion keeps last frame's placements on the CPU and the velocity pass reads them per copy. Copies placed by a compute buffer, and a MeshField's, never pass through the CPU, so their last frame would have to be kept on the GPU: for a compute buffer, a copy of the buffer taken before the kernel writes the frame's placements (and kept per buffer, since a sketch may write one twice); for a field, its placements already live on the GPU and stay put unless the field is rebuilt, so a moving field moves through its draw-time matrix, which a field mover would carry as one transform, and the cull's compacted list would map each visible copy back to its id. Separately, at an overdriven shutter (4) on the default tier the streaks read grainy across a fast copy's body: the reconstruction gather's taps are tier-bound (9, 15, 27), and a shutter past 1 stretches the same taps over a longer streak (to the k clamp), so .detail is the smooth one. Whether an overdrive should raise the count with the streak is the question there.
  • Depth of field on the canvas: the parts ahead. depthOfField() runs over the main canvas: a withTarget layer and the accumulation surface (noClear()) stay sharp, and the pass would need the resolved depth each one keeps. The cost is a full-resolution gather (about 14 ms at 1080 by 1080 on an M2 at .default over a frame full of blur); the far field, whose blur is wide and smooth, could gather at half size and be brought back up, as the flare's ghosts are. The hidden layer reaches the far field only under a veil. The scene drawn a second time behind the first surface is read under a pixel in front of the focus, where the cover share decides how much of it shows, and under a near veil tap for a pixel behind the focus. A mesh built or loaded by hand carries no word on whether it is closed, so its back face stays out of the layer; the print check's boundary-edge count could answer it once per mesh if a case asks. Just inside the top rim of a near ball against the backdrop the canvas reads darker than the lens (0.02 over a 5 px ring on the lens figure's scene, the cover there within a hundredth): the lens looks over the ball's top from the lower half of the aperture and sees the sphere's own limb, points that face away from the eye's center and so are culled from the hidden layer as back faces; a peel that kept a closed mesh's back faces where they face some point of the aperture would carry them. A one-pixel hole in a near surface (a gap between floor boards) is found by some taps and missed by others, which shows as a faint dotted line where the lens draws a smooth one; the tap count barely moves it (the gap lines' high-frequency error against the lens read 0.0012 at the default tier and 0.0010 at the detail tier on the lens figure's scene, at 288 and 768 taps), so the lever is a read of the color at the tap's own footprint, which has to stay on one surface or it invents a blur a sharp line never had.
  • A traced sequence, cheaper. What a path-traced sequence could still save beyond the per-pixel stop (--pt-noise), the frames carried across it (--pt-reuse), and the time budget a frame (--pt-seconds), motivated by a sequence of two thousand polished-metal copies under a lighting-only environment at 1080 by 1920, where 128 denoised samples take 12 to 14 s a frame and 256 take 27, so a minute of footage is a night or a day. A sharper history read: the carried frame is read through the four texels around where a pixel was, and every frame a surface moves by a fraction of a pixel that read spreads a pixel-wide lamp speck into its neighbors a little, which a file that clips at white shows as a brighter surround (the bead field's mid-tones read 4.5 levels bright against a sharp render while its specks dimmed); the published answers are a Catmull-Rom read of the history (sharper, not sharp: a speck still spreads, more slowly) and a history clamp fed by the frame's spatial neighborhood (the two-sample spread clamp lets the smear through because the smeared history's own spread is wide), and an edge-aware read that takes the nearest texel where the four disagree beyond their errors puts a positional jitter into a panning camera's floor, so it is not the answer either. A blurred field of movers at different rates: under a lens a pixel follows the mean motion of the movers inside its circle of confusion, and where those move apart (the far half of a sweep) the mean fits none of them and the carried light smears along the sweep; refusing the history where they disagree by over a pixel refuses most of such a field and gives the gain back, so the next step is a motion per depth layer inside the circle, or the raster's own depth-of-field split, before any threshold. Reuse that knows a reflection: the frames carried across a sequence follow each pixel by its surface's motion, and a polished surface's reflection does not move with its surface (a spinning ball's highlight stays put, a mirror's image moves with the eye and at twice the turn), so on such a pixel the facing test drops the history and the pixel falls back to its own frame's count; the published answer is a second motion vector for the reflected point, the hit behind the mirror reprojected as if it stood there (the virtual-position reprojection the real-time denoisers use for specular history), which would let a slowly turning bead field carry its reflections too, and wants the first hit's reflected distance written beside its depth. Reuse that the stop reads: the per-pixel stop judges each frame's own samples, so under reuse a pixel whose carried history is already settled still traces the frame's minimum; a stop that read the carried spread would let a still region of a sequence trace a handful of samples a frame, and would want the history's count folded into the convergence check at the round boundary. The stop has one open end: the rare bright path a pixel has not seen when it is checked, which no per-pixel statistic can count. The published answer past a minimum count and a neighbor rule is a hierarchy over blocks (Dammertz and colleagues, 2010) or a reset of a pixel's remaining count when a late sample falls outside its criterion (the RenderMan 2018 paper), either of which would want a scene that shows the gap first. The bound on twice-bounced light (--pt-clamp) answers only the caustic kind of firefly, and the scene of two thousand polished beads mirroring a lit studio is not that kind: its grain is one-bounce light, the studio's lamps through each bead's glossy lobe, where the bound takes 7.5 percent of the frame's light at 4 for a tenth of a decibel, and bounding one-bounce light too (the production tracers' clamp direct) takes half the frame, since those beads are their reflections. That scene's grain was the pixel's footprint on a curved near-mirror (two thirds of its per-sample variance, measured with the jitter and the lens frozen) and the point light's highlight through a near-delta lobe, and the tracer reads the environment and the lights at that footprint; two levers stay open past it. The table's draw and the continuation read one filtered picture, each at the level the cone reaches along its own direction, while the table that aims the draw is still built from the sharp map, so a draw into a lamp's cell reads the lamp spread over the footprint where the table priced it sharp: a table built per footprint level (a chain of tables, the draw taken from the level the cone asks for) would match the draw's importance to the picture it reads, which is what a polished scene under a lamp-lit studio would want next. And the footprint is isotropic, the mean of the triangle's three edge curvatures, so a surface curved one way (a polished cylinder, a wire) is under-filtered across its flat axis; the published bound takes the largest visible edge curvature instead, at the cost of over-blurring a sphere. Beside it, a light strategy for .glowing surfaces, which are credited whole wherever a path lands on them today, so a small hot glowing mesh speckles everything that sees it after one bounce; a mesh light (MeshMaterial.emissiveColor) already has one, and the glowing case would join it.
  • Blocks marched cell by cell. voxelized marches as any field does: the child's distance less a block's half diagonal far from the surface, and within the band near it, the eight nearest cells read nearest first and kept along the ray. Measured on an M2 at 1080 square with the GPU saturated in one process, a block field costs about three times its child (a three-leaf melt 15 ms plain, 45 as blocks; an eight-leaf island 51 and 150) whatever the block size, and shadows about double it; the step count near many block edges is what is left. The canonical answer is a grid traversal along the ray once inside the band (Amanatides and Woo, "A Fast Voxel Traversal Algorithm for Ray Tracing", 1987): one read of the child per cell crossed, the hit face from the last axis stepped. It needs the ray in the field walk, which the march has and the walk does not; a block field is recognizable (its last instruction is the voxel scope's end, which the face normal already keys on). What it would cost: the near-miss coverage that antialiases the silhouette reads a distance, which a traversal does not produce, and the soft shadow's penumbra the same. Worth doing when a sketch needs blocks at a live frame rate on a large field.
  • The scene through glass, further. Four things about a solid body's walk through the layer (ollin_scene_march). The walk's steps stand off the pixel grid. A step tests the pixel its sample point is in against the ray's depth half a step before that point and half a step after, which can be half a pixel from the pixel's own walls. Where a ray falls fast against a steep face, that is a share of the face's depth, and the picture of the face is off by as much. A walk whose steps land on the pixels' middles would test each pixel from wall to wall. Against a rule that compared two neighboring pixels' nearest depths it changed nothing; against the measured spans it is untried. A face thinner than its samples can follow. A face that falls more than 2% from one depth sample to the next, about a third of a pixel wide in the layer, is still taken for a silhouette. A hidden ray's read (the last pixel it stood in front of) can still land on a pixel its surface only partly covers, and shows the blend. The walk's cost is its longest rays: the GPU shades neighboring pixels together, so a tenth of the pixels reading more than 32 times sets the pace for most of them. Those rays cross cluttered parts of the layer one 8-pixel block at a time (a gap between two things narrower than a 64-pixel region, the inside of a thing a ray is traveling behind). A level between the two, and a plane for the farthest depth beside the nearest (the farthest depth alone cannot pass a ray traveling under a floor over a block), are the candidates, each to be measured by a walk's own cost (four rays a pixel against eight, old shaders beside new), never by a frame time. Several rays a pixel, measured and not taken: four rays in a fixed pattern smooth an edge seen through the body the way multisampling smooths the body's own, at four times the walk (28 ms a frame against 11 with a ball filling a 1080 square frame on an M2); one ray stays.
  • Don't 3D-tax the 2D path. Most sketches stay 2D, so don't make every draw call pay for a depth buffer or perspective divide. 3D is a mode you opt into, not a cost the 2D core carries.
  • Caveat: the 3D mode itself builds and verifies on a Mac; visionOS needs the visionOS SDK plus a simulator or device.
  • A view asked for before the camera rig's first frame. By reading (2026-11-11), not yet in a test: cameraView(_:) called before the run's first cameraControl, cameraMove, or cameraShowcase is dropped, since the rig's first frame seeds over the pose the request snapped to. A sketch that wants to open on the top view asks after its first frame. The rig would keep the request until it has been framed once.
  • A radial repeat's axis, in two precisions. Sketch.repeatedRadially(count:around:_:) normalizes its axis in double precision and then narrows it, and SDF3D.repeatedRadially normalizes in single, so a skew axis can differ in its last bit between the two spellings of one field. The scope's pair in CombinatorScopeFormsTests uses an axis along z for that reason. One of the two wants to call the other.

Material and scene explorers

The exploring surface is the material explorer example (Examples/3D/Materials/Explorer). It puts the curated Material library on a preset menu and every finish scalar on a parameter. The stage around the surface switches too: lighting preset, backdrop, fog, shadows, and the preview solid. A caption says when the parameters have left the chosen preset. The rules for anything built on it:

  • A material is source, never a file format. No JSON and no .ollinmaterial: the scene-import rule ("structure becomes source, geometry stays in the file") decides it, since a material is all structure. Live iteration is already @Param plus hot reload. Interchange, if ever wanted, means the standard models the loaders already speak (glTF materials, UsdShade), never an invented schema. A preset that bundles surface color and a procedural pattern with the finish (a "marbled" look) stays a three-line snippet for the same reason. Only if that want keeps recurring does a value above Material earn its own design pass.
  • Reuse before generalizing. The stage block (lighting, backdrop, fog, shadows) is written per explorer until a third customer proves the shared helper.

Photorealistic 3D

The realism tier that builds on the physically-based core (PBR metallic-roughness, split-sum IBL from HDRI or the Hosek-Wilkie sky, ray-traced shadows and reflections, SSAO, SSR, raymarched SDF fields) toward the look of a curated product render or film still. Every item is opt-in so 2D and stylized 3D stay untaxed, every one is Metal-native (no engine vendored), and each is implemented from the published technique and credited in ATTRIBUTION.md's Techniques. This is the "anything Metal offers that enriches 3D" tier, after the foundational 3D mode buildout: as a new realism technique finds a good fit, it is added to the textured path's twin pipelines (or a gated branch of the surface-mapped fragment, which may branch freely) so non-using materials stay byte-identical.

All Apple-silicon Metal, the realism direction's "build Ollin APIs for anything Metal offers that enriches 3D."

  • What a traced hit still reads flat. A reflected or refracted hit reads a surface's picture and its normal, metallic-roughness, occlusion, and glow maps at the ray's footprint. Three things stay on the surface itself: a height map's parallax, the tiled detail pair, and decals. A layer's image used as a normal, roughness, or occlusion map stays there too, since the traced scene's records are written before the layers draw; the picture's own second route (the table copied with the layer handles filled in, tracedPictureTable) is the one that would carry them. The footprint is a pixel's width plus the lobe's, with no curvature term, so a picture seen in a strongly curved mirror is read finer than its image there, and the path tracer's per-triangle curvature (ollin_pt_curvature) is the form to carry over. A picture authored pixel by pixel carries no smaller levels, so its read lands on full size whatever the footprint.
  • A shaped lamp's caustic. Photons leave a spot light through its cone alone: its IES profile and its cookie shape the direct light (ollin_apply_light_shaping) and not the photons, so a patterned or profiled lamp throws the caustic of a plain one. The trace would read the same profile and cookie arrays the lit fragments do, at the emission direction, which is also where the cone is read today. Pinned the way the rest of the chain is (CausticEnergyTests): a pane under a cookied spot gives back the cookie's own pattern times the pane's transmission.
  • The probe grid's resolution. A surface reads the probe field from the row of probes nearest it, which sits a third of a cell inside the room, so a ceiling reads the floor's lamp pool from closer than it stands: in the invariant room (8 by 4.4 units, a 512-probe grid) that row is about 0.35 units in, and the converged field reads 1.12 to 1.21 of a 64-deep path trace at the ceiling, the pool's falloff over that distance. The bounce's depth is right (the light room's bounce against the dark room's matches the trace's own ratio within 3%); what remains is the grid. A finer budget shrinks it in proportion to the spacing, and a read that corrected the nearest row by the field's gradient along the normal is the cheaper route; theBounceMatchesADeepTrace holds the envelope (0.85 to 1.3) until one lands. Two smaller edges beside it: a glowing surface with an emissive map glows at its factor over its whole face in the bounce (the probe trace reads a surface's material, not its texture; binding the per-geometry texture table the path tracer builds would read it), and a smooth metal's bounce is the cosine-convolved field through its lobe, where its sharp image of the room is the reflection pass's.
  • A bright disc a pixel long under the live resolve. The history is resampled in linear light, where a pixel a very bright disc covers by any fraction still reads white, so under a turning camera the sky's sun is every pixel its true disc touches: one pixel longer along the turn (1.12 to 1.55 times the plain disc's lit area, 1.16 with the camera still), with its centroid off the true place by half a pixel minus the turn's fraction of one, zero on average, which theSkyFollowsATurningCameraInTheLiveResolve holds at eight turn rates. Resampling in the resolve's compressed space is not the answer: four forms of it each place the disc better and wrap it in a soft ring 1.4 to 2.1 times the plain area, and the crisp disc is the one kept (ruled 2026-11-05). What is left to try is a tighter limit on what the history may claim beside a very bright edge: the rectification box around a pixel next to the sun is as wide as the sun, which is what lets the extra pixel stand. The measurements are in ARCHITECTURE.md § Temporal anti-aliasing.

AR mode and templates (the Meta Spark gap)

Ollin aims to support AR sketches: a sketch drawn over the camera's picture and held in place by what the device knows about the room, a face, a body, or a printed picture. It aims at the gap left when Meta Spark was discontinued (January 2025). Apple-only: ARKit and Metal on iOS and iPadOS, with the visionOS immersive path after them.

  • It's a mode layered on the phone and 3D/visionOS work, not a separate engine. AR builds on the phone leg (see Swift Playgrounds and iOS), the sensor stream (see iPhone as a sensor array), and the 3D camera and depth pipeline (see 3D mode).
  • The Spark lesson is templates. Spark's reach came from ready-made effect templates (face filters, world effects, plane and image tracking) people could start from. The Ollin version: AR-example sketches plus starter templates wired to ARKit anchors (face, world, image tracking), so an AR sketch is "fill in the draw(), the tracking is handed to you", the same template-as-on-ramp idea as the examples and .swiftpm starters.
  • What of that gap is in reach. A template-driven AR tool gives people four things: tracking handed to them, templates to start from, a preview at the desk and on the phone, and a place to publish where an audience already is. The first three are in reach, and most of the tracking already crosses the cable. The fourth is out of reach. An effect made with Ollin leaves as a video or as an app built from the sketch, and no feed opens it from a link. A player app that loads other people's effects is out as well, for two reasons: a phone runs no code that was not built into the app, and an effect described as data in place of a sketch would be the document format the framework lane refuses. So the aim is the authoring half, for people who write code, with templates as the way in and no editor of its own.
  • One sketch, three places. The design rests on one object the sketch reads, PhoneDevice, and three places its data can come from: a recording in a file, the phone on the cable, and the phone's own sensors when the sketch runs there. The sketch asks the same questions in all three (the faces, the planes, the camera's place and lens, the picture) and stays the same .swift file. Each place has a job. The recording is the desk loop: it replays exactly, needs no phone, and exports at full quality, so it is also how a finished piece is made from footage. The cable is the live loop, with hot reload, since the sketch runs on the Mac. The phone is where an effect ends up. A capability lands in that order where it can, because the first place is the one a test can prove without a device.

The build order. Each step is useful without the ones after it, and each builds on a recording of the phone's stream played back on the Mac, which is where a piece is worked on at the desk, on drawing on a surface the picture shows, and on the camera's picture on the cable, which is the same sketch live.

  1. A surface that stays locked. A tracker's place for the camera is off by a little on every frame, and a drawn thing swims against the picture by that much. For a flat surface the picture itself can correct it: the wall's own texture, flattened through the plane and the pose, is lined up from frame to frame and the pose is nudged to agree. It needs real recordings to measure against, and the measure comes first: how far a pinned point drifts over a walk, before and after. The same registration is the open route to footage filmed without the app, where there is no pose at all and a flat surface is all that can be followed. That part is unmeasured and may not hold.
  2. Templates. The generator's AR kind, with a starter for each tracker (a face, a surface, a printed picture, a body, hands). Each starter is a worked sketch that reads a small sample recording, so it runs at the desk the moment it is generated and on the phone once built.
  • More of the live loop. Four things the cable's picture still wants, none of them a step the others wait on.
    • The delay, measured. The picture on the Mac trails the camera by one crossing of the cable, and the picture on the phone's screen by two. Neither has been measured on a phone. The measure is a clock filmed by the phone and read off the phone's own screen in the same shot, and a stamp carried through each stage (capture, compressed, received, decoded, drawn, compressed again, shown) to say where the time goes. What the number is decides what the loop is described as suiting.
    • The size it crosses at. The picture is compressed at the size the camera delivers, at about an eighth of a bit a pixel a frame. A smaller picture costs the phone less heat, and a phone that is warm halves its own frame rate. The choice belongs to the sketch (a canvas smaller than the camera's picture gains nothing from the full size) and wants the heat and the delay measured at two or three sizes first. It travels as a request on the camera connection, which the phone's listener already reads.
    • A tracker over the cable's picture. A recording hands each frame's upright picture to a vision tracker attached to the device. The cable's camera feed decodes into buffers on the media engine and hands nothing out. The tap wants a picture on the CPU, so it costs a copy per frame while one is attached and nothing otherwise.
    • Record, from the sketch. The viewfinder carries a Record control, and the person holding the phone presses it. A sketch on the Mac cannot start the phone's recording itself. The call wants one name that means the same thing in all three places: on the cable it asks the phone, on a recording it has nothing to do, and on the phone itself it needs the recording writer, which the capture app holds, moved into the library. That move is the cost, so the call waits for a piece that has to start a recording on a cue.
  • More of the phone alone. Six things a sketch running on the phone still reaches for, none of them a step the others wait on.
    • What the phone does there, measured. The first things to take on a phone are the frame rate and the heat in each mode, the picture's turn in each hold (the front camera's held sideways most of all), and whether a canvas that follows the screen keeps up with a turn of the phone. A take of a full-screen canvas is the next: each frame is copied out of the GPU at the screen's own size (1206 by 2622 on a 6.3-inch phone, 12.6 MB a frame) before it is encoded. In the iOS simulator that work on the writer's queue (a buffer from the encoder's pool, the copy into it, the hand-off) took 6.7 to 12.4 ms a frame at the median and 27 to 87 ms at the 90th percentile, where the same copy takes 0.65 ms on the Mac, and the encoder turned away 19 to 29 percent of the frames itself; with 128 MB of frames allowed to wait, a take there kept 40 to 73 percent of its frames. The simulator encodes in software, so only a phone can say what a take keeps. If a phone drops frames, the texture hook is the route, writing the GPU's surface into the movie with no copy on the CPU.
    • A take that hears the room, beside an instrument. The room's sound needs the phone's sound session set to play and record, and the recorder sets it when the take begins. An engine already playing hears that change as a new configuration, and the sound library's engines do not start again after one. So a sketch that plays a synthesizer and records the room may go quiet when the take begins. The fix is in the sound library, restarting an engine on a configuration change, and it wants a phone to show the failure first.
    • What a phone still does not read of itself. Every finger on the glass, as device.touches: the canvas view reports one finger, so this wants a seam in the core for all of them. A press for the wand. The sound classifier and the barometer, each of which asks a permission of its own, so each wants a call the sketch makes and its question written into the app.
    • A room that survives a save. A save installs the app again, and every start of a mode resets its tracking, so the room's origin moves and a kept place no longer names its spot. ARKit can write a world map down and find its place in it again. Whether a relaunch can pick a room back up that way, and how long finding its place takes, is the number to take before it is offered.
    • One rule for which reader a mode starts. The capture app holds that rule and the library holds a second copy of it. The app moves onto the library's on a day a phone is on the desk to try every mode afterwards, since nothing else can show that the app still runs each one.
    • A reading handed over without being packed. In one process a matte, a heat map, a flow field, and a depth frame's color are compressed by the reader and opened again by the device, both on the main thread. Handing the buffer over is the direct route. What it buys is a number to take on a phone first, mode by mode.
    • A reading that waits for its own picture. A reading a slower model makes (the hands, the text) arrives after its frame's picture has been replaced, so it sits a few frames behind what is on the screen. Holding the picture back to the reading's frame is the alternative, at the cost of that delay on everything.
  • More of a surface. Three things a sketch drawing on a wall still reaches for, none of them a step the others wait on.
    • Plain 2D calls on a wall. A flat composition reaches a surface through a layer the sketch makes and lays on four points. A scope could own that layer, so drawCircle inside it lands on the wall. It has to choose the layer's size from the region drawn on and a resolution in pixels per meter, keep one layer per call site across frames and a live reload, and be a scope of its own, since a block that also holds meshes cannot go through a flat layer.
    • A fitted surface over more than one frame. A surface fitted from depth is one frame's reading, and the sketch keeps it. Two things it could gain, each wanting a real recording to measure on first: a fit carried across frames, so the patch grows as the camera sees more of the wall and the plane settles further, and a surface that curves or steps (a tiled relief, a column) read as what it is. How far one frame's fit sits from the wall on a phone's own depth is the number to take before either.
    • The room's own shape as what hides. occluding hides exactly the mesh it is given, and the flat surfaces are a small part of a room. The room mesh is the fuller answer where the phone has LiDAR, and the depth map under each frame is the finest one, written into the depth buffer under the picture the way a depth scene is drawn. The depth map is coarse and reaches a few meters, so its edges want care.
    • The wall behind a piece that floats. A piece lifted clear of the wall shows again, flat, in the picture behind it. Filling the place it left from the pixels around it is a feature of its own, and a rule for a repeating surface (take the neighboring tile) covers the common case.
  • More of a face. Five things a sketch drawing on a face still reaches for, none of them a step the others wait on.
    • Left and right, checked on a phone. A face session arrives mirrored whole, and the reference names a face's sides only as the phone's own labels. Which real eye eyeBlinkLeft follows wants one wink before a phone, and then a sentence on the page. The wink expressions and anything worn on one side lean on it.
    • The view as someone else would see it. Flipping the finished frame is a layer and a negative width today. A scope could do it: draw its body mirrored about the canvas's middle, the picture, the 3D camera, and the 2D calls together, with writing the sketch draws flipped back so it reads. The camera's projection has to flip with the picture, which turns every triangle's winding over, so the passes that cull by facing have to know.
    • Names for places on a face. A spot of skin is a texture coordinate, found by a click. The tip of the nose, the brow, each cheek, and the chin could have names, as coordinates on the phone's own mesh. They have to be read off a real mesh, since the stand-in head's map is its own.
    • A head that hides by its own shape. The rest of the head behind the face's mesh is an egg sized from the mesh's width and height. On a phone with depth the head's real outline is in the depth map, and hair, a hat, and a hand before the face are in it too. The depth under the picture, written as what hides, is the fuller answer, and it is the same work as the room's own shape under More of a surface.
    • A lighter Face recording. Every reading of a face carries the mesh's triangles and its texture coordinates again, and neither ever changes: only the points move. Written once at the head of a recording and once at connection on the cable, a reading would be its points and its numbers. The reader would hold the last map it was told and hand a sketch the same PhoneFace. What it saves is the first thing to measure, on a Face recording made on a phone.
  • A recording made on the Mac is the test. The format's writer compiles on both ends, so a test renders a known scene through a moving camera, writes it as a recording, and reads it back. Anything a step draws at a known point in that scene must land on its picture within a pixel on every frame. This holds every step that reads a recording to a number without a device, and the scene grows with the steps: a tiled wall with a poster and a mark on each of its corners for the surface work, a pose with a planted drift for the lock. Two lessons of that wall hold for any mark a test reads out of a video: a mark on a surface has to be flat, since a ball sunk into a wall shows a half-ball whose visible middle is off its center from the side, and two saturated marks a hue step apart bleed into each other through the codec.
  • Further out. A place that is remembered between launches, so an effect stays in a room. People passing in front of a recording, cut out on the Mac by the trackers it already has. The visionOS path.
  • Caveat: what the phone does needs the phone (the simulator has no AR camera). The app's side builds at the desk for a generic device, and its behavior is checked by hand with the device in the room.

iPhone as a sensor array

A Mac has no depth camera, no inertial sensors, and no spare Neural Engine for live perception. A tethered iPhone has all three, so the idea is to let it act as a sensor and on-device ML co-processor for a sketch that still renders on the Mac. The phone captures and perceives, streams the results over the wire, and the sketch reads them in draw() as typed values. The Mac keeps the Metal rendering ceiling; the phone fills the input gap desktop hardware leaves.

The starting want was live RGBD point clouds, the kind an Intel RealSense fed openFrameworks before its Mac drivers were dropped. An iPhone with LiDAR is the same world-facing depth-and-color sensor, except the driver is ARKit and Apple maintains it. Both the recorded path and the live USB path exist (OllinRecord3D reads Record3D .r3d clips and its live USB stream; see Docs/3D/Record3D.md): a depth map plus intrinsics unprojects, through the 3D mode point-cloud path, into one splat per depth sample (around 49k for LiDAR's 256×192 map, ~300k for TrueDepth's 640×480). The renderer, the unprojection, and the live wire need no new work; what's ahead is more sensors over that wire.

One channel, many typed payloads. Depth is only the first thing the phone can send. Because both ends are ours and both are Swift, the wire skips the packed-image trick cross-language tools reach for: it is a length-prefixed binary stream of tagged messages, each a typed payload the sketch reads through the same transport-agnostic FrameSource abstraction used for the point cloud. The phone app is a configurable sensor hub, so adding a sensor later is a new payload case rather than a new pipeline. A header struct shared verbatim between app and framework carries intrinsics, pose, and a version byte; the rest is raw or LZFSE-compressed channel data.

The phone runs the expensive model on its Neural Engine and ships kilobytes of structured results, so each new sensor is nearly free on the wire:

  • Desktop-impossible. TrueDepth face mesh and its 52 blendshape coefficients (the Animoji engine: jaw, blink, brow, and smile as 0-to-1 values), 3D body motion capture from a single camera, 6DoF device pose, and the inertial sensors (attitude, gravity, acceleration, rotation rate) a Mac doesn't have at all. The motion stream is the cheapest to build and the most physical: a few floats, no camera, no model.
  • Possible on a Mac, but the phone is the natural host. Vision runs on macOS too (that's the OllinVision catalog), yet the phone holds the camera and the spare Neural Engine: subject segmentation, scene and object classification, and speech.

Most of those payloads are kilobytes. Only the per-pixel ones (segmentation matte, optical flow field) are heavy, and they arrive as textures, which is what the layered effects graph already consumes, so a live person-matte becomes a Filter input rather than a separate feature. Everything here is Apple-native (ARKit, Vision, Core Motion, Core Location, SoundAnalysis, Speech) with no third-party dependency, and it shares its prerequisites with the phone leg and AR work.

The transport is the proven live USB path (the standard usbmuxd device tunnel): full-quality LZFSE float32 depth plus camera intrinsics and ARKit pose, RealSense-grade, no extra dependency. Ollin's own capture app speaks the same length-prefixed-tagged-payload wire, so the sensor catalog isn't capped by what one borrowed app exposes. Record3D's WiFi streaming stays deliberately out, correcting an earlier assumption that it would be the easy one: it's WebRTC (a heavy dependency, and the record3d library doesn't support it at all), gated behind a paid Extension Pack, and its depth is lossy hue-encoded with no pose: the worst option on every axis, and the reason USB is the only streaming mode supported. Device class gates the sensors (TrueDepth for face, Pro-tier LiDAR for rear depth and scene mesh, A12 and later for body tracking), and several heavy models at once will thermal-throttle, so running every sensor together is a practical limit, not an API one.

What a recording still owes. Four things.

  • Its sound, read by the sketch. A recording's sound is heard and exported, and a sketch cannot read it: no level, no spectrum, no onset to draw from. The core's tap seam (AudioTapSource) is what the analyzers of OllinAudio read a file's and a video's sound through. A device that plays a recording can answer it with the decoded track at the recording's place, the same samples under an export as in a window. The proof is a click at a known time read as an onset on the frame it falls in, in two runs.
  • A recording with sound to ship. Every bundled recording is drawn on the Mac, and is silent. An example that plays a recording's own sound, and a figure for the Guide's entry on it, want a recording made on a phone.
  • The sound against the picture, measured. A frame drawn now reaches the screen a refresh or so later, and the sound is written that much later to meet it, taken as one frame's time. What a display really adds is a number to take with a camera pointed at a screen and a microphone beside it.
  • A recording of each mode. The device object is the same for a recording and for the cable, so every phone example and every figure on the phone pages can read a recording, which is how they stop needing a phone. Each wants a recording of its own mode. A World-mode one can be written on the Mac, the room's depth worked out from its own numbers, and bundled with a depth example; the others want a real device.
  • Its weight and its losses, measured on a phone. A depth map is stored as 16-bit millimeters against its neighbors' prediction, and a rendered room says that is a fifth of the float form. A phone's own depth has its own noise, so what a minute of World mode weighs is a number to take on a device. The same recording says whether depth at half the camera's rate would be missed.
  • Why Room mode drops frames in bursts. A phone lost 48 frames in one second of one Room recording, and none in others. The writer is not the cause as far as a Mac can say: fed a depth map with every frame, or three large blocks of a room five times a second, it keeps every frame. A recording names each frame it loses, with why and with how late the frame reached the writer, so the next Room recording made on a phone answers it. Frames that arrive late in a run point at the phone's main thread, where a block of the room is read out sample by sample on every update, far more often than it is sent. The remedy there is to read a block when it is about to go out. Frames that arrive on time and find the writer behind point at the video, and the remedy there is a small pool of the writer's own copies, so more than three pictures can wait without holding the camera's buffers. Neither is built before the recording says which.

This is the ground the AR work stands on, and the tracker's limits travel with it: depth reaches a few meters on a coarse grid, and the camera's place drifts a little over a long walk.

The clean-room stance carries forward to our own app. Both the .r3d file reader and the live USB stream are read clean-room from their public structure, the same constraint our own capture app's wire still works under: the record3d library is LGPL-2.1, the same copyleft tier as p5.js, so it stays inspiration only (reimplement the wire protocol, never translating its source, exactly as the sourcing rules treat p5.js). Record3D is credited like the other product references, not vendored. New sensor payloads added over the wire follow the same rule.

Small pieces

The notes behind the smaller items on the roadmap's Up next list.

Generative geometry

A tier of classic generative-art algorithms that produce vector geometry (points, Contours, Shapes) and hand off to the geometry that already exists (the triangulated fill, the stroked path, the shape booleans, hatching, SVG export). They're geometry, not rendering, so they live in the Ollin core beside the shape booleans and the Path builder rather than in a satellite: none needs a heavy framework, and the split OllinPhysics took was about keeping simulation opt-in, not about dependencies. All are driven by the existing seedable random/noise so a result is reproducible, and each ships with an example; several are the natural implementation behind a recreation.

The reproducibility note matters: every one of these is a pure function of seed() plus parameters, so the same seed always yields the same packing/growth. License stance is the usual one: implement each from the published technique (credited in ATTRIBUTION.md's Techniques list). Origin note: these surfaced from mining the /algorithmic-art skill's implicit technique vocabulary against what Ollin already ships (Voronoi/Delaunay, the foundational primitive of the tier, is a pure-Swift Bowyer–Watson, no library vendored).

Technique and algorithm helpers

This is the umbrella the generative-geometry tier is one wing of: a standing catalog of the creative-coding algorithm vocabulary, added as helpers over time the way the SDF-shape catalog, the Filter catalog, and the color family grew. The organizing rule is to route each technique to the seam it naturally belongs on rather than invent a parallel system:

  • A looping noise made for motion. The noise is stretched to fill its range and clipped at the ends, so about 6 samples in 100 of the looping forms sit exactly at an end (the gain's own comment in Noise.swift measures it), and a position driven by the signed looping noise, or by sway in its wander shape, rests there for a stretch. The Noise page gives two ways round it: clamped: false, which never rests but leaves the range, and the two-read mean, which stays inside it and swings three quarters as far. The helper is a soft-limited form that does both, never resting and never leaving: the mean of two decorrelated reads passed through an error-function limiter (erf(1.75 n) spreads it evenly over the range, measured on 80,000 reads), under a name that says it is for motion, with sway's wander reading it.
  • Geometry emitters produce points, Contours, or Shapes and feed the existing draw, shape-boolean, hatching, and SVG paths, exactly like the generative-geometry builders. The most plotter-friendly and the cheapest to add.
  • Field techniques that read per-pixel (a new noise basis, an interference field) land as a GPU Generator (a no-input ollin_gen_* fragment) or a user shader, reusing the layered-effects substrate rather than the CPU geometry path.
  • Simulations (iterated function systems accumulated on the GPU) run on the compute and SimField paths already in place: persistent ping-pong buffers or textures stepped each frame, drawn through the instanced or image path.

The rest of the catalog follows the same shape: a canonical algorithm implemented from the published source, credited in ATTRIBUTION.md's Techniques list, seeded for reproducibility, and shipped with an example, several of which pair naturally with a recreation (an attractor plot, a flow field, a substrate).

The catalog is also a Nature of Code coverage map, so it reads as a familiar curriculum to anyone arriving from that world.

For any animated per-pixel Generator, three implementation notes hold (their map is fluid, enonforetsam/fluid, MIT, a single-file WebGL background studio read the LYGIA way: a catalog of which looks matter, implemented from the canonical sources rather than its code): spread a noise-family field's contrast around its midpoint so a palette reaches its end stops (fbm piles up near 0.5 and otherwise hides them); animate by small bounded sways at non-commensurate frequencies so the field churns in place instead of panning as a rigid sheet (which also keeps the time argument precision-safe over long sessions); and normalize field coordinates by the canvas's geometric mean so a portrait crop reveals more field rather than zooming in.

  • The direction a pairing is solved in. Matching.optimal gives each row a column in turn, and a row costs what its search walks through: every row already placed that sits nearer than the first free column. That count depends on which set plays the rows. In a release build, 1,600 points spread over the canvas paired with 1,600 packed into a word's letters take 0.29 s with the spread set as the rows and 1.02 s with the packed one (191,000 rows walked against 655,000); a cloud against a line of points, 0.11 s against 1.63. For two sets of one size either can be the rows and the pairing is the same one read from the other side, so the solver could choose. A rule from the two lower bounds the table gives for free (the sum of each row's least cost against the sum of each column's, the larger side as the rows, since the search then starts nearer the answer) chose the cheaper direction, or one within 2% of it, in 16 of 20 structured cases at 1,600 points (cloud, word, blob, line, grid, ring, and two blobs, in each order): 10.2 s summed against 13.4 as called and 8.6 with the better direction every time. It lost on a grid against a cloud, where the two bounds sit within a fifth of each other, and on two blobs of different sizes (2.0 s against 1.4). What it wants before it is the solver's own: the same table at 400 and at 3,000, in space, over costs that are not distances (two palettes), and with forbidden pairs, whose stand-in cost reaches both bounds; and a note in the changelog, since a table of ties answers a different pairing of the same total once the direction can change. Until then a sketch that flies a packed set out to a spread one passes the spread one first and reads reversed(). Measured beside it and left out: rows bidding for columns before the paths begin (the augmenting row reduction of the same paper) takes 1.7 s on the random table the paths alone finish in 0.13, the bids of near-equal rows undercutting each other a hair at a time.

Origin note, the same as the generative-geometry tier: this catalog is the broader read of the /algorithmic-art skill's technique vocabulary against what Ollin already ships. This section is the standing list of what's left.

Expressive brushes and strokes

The fringe expander carries a half-width per path vertex, StrokeProfile shapes it by position along the path, a recorded StrokeMark drives it from the hand, and a Brush stamps a shape along the path instead of expanding it. The tier builds out from there:

  • Painterly simulation stays separate. Watercolor-style marks built from layered, deformed translucent geometry are a technique-catalog recipe over the shape and accumulation machinery, not a brush engine; keeping the two distinct keeps the stroke renderer lean.
  • A wet stroke over a kept canvas on the web page. On a canvas that keeps its paint (noClear), the Mac's ground pass starts from the pile so far, and the page refuses the stroke by name. The page's ground would load the canvas's resolved texture first (a full-screen copy into the pooled ground surface, since WebGL2 forbids a blit between two multisampled buffers) and then draw the frame's other items over it.

Sound, synthesis, and spatial audio

OllinAudio covers both directions: AudioAnalyzer (FFT, bands, beat detection) over AudioInput / AudioPlayer / Tone / Soundtrack on the listening side, and a polyphonic Synth (voices over anti-aliased oscillators, ADSR envelopes, a resonant state-variable filter, delay and reverb) on the playing side, with a clock-free composition tier deciding what it plays. Both sides are routing as a value now, so what is left is depth rather than shape: more of what a voice can be made of.

  • The render-thread rule holds. Anything the audio callback touches is built non-isolated and allocated before the first note, and parameters reach it through the lock-free event ring rather than a lock. A new voice type inherits that constraint; it is not a per-feature decision.

  • Keep the renderer pure. The samples are made by a renderer that knows nothing about the audio engine: events in, buffer out, no clock. That is what makes the sound testable at all (a test renders and measures) and what a sound-carrying export would be built on, so a feature that reaches for the engine from inside the renderer is going the wrong way.

  • A curve run above the chain's rate. The distortion's curves run at the rate the chain runs at, so a high note driven hard makes harmonics past what that rate holds and they fold back as tones outside the note. Running the curve at twice the rate between two half-band filters is the standard remedy; it wants measuring first (the folded power of a soft clip and an overdrive at MIDI 84 and 96 against the note's own), since the filters cost a few samples of delay the characters do not have today.

  • A ring at a frequency a sketch names. The ring multiplies by a sine fixed at 300 Hz, and the squeeze's band sits at 1,200 Hz. Distortion.Character is a plain list of names, so a carrier or a band a sketch sets wants either a field on Distortion that only one character reads or an effect of its own (.ring(Ring(frequency:))), which is the cleaner of the two.

  • A loop that holds. An echo's feedback stops at 0.95, so a phrase in a long echo fades by half in about fourteen passes. A looper that holds a phrase until told to let go wants a feedback of 1 with the input shut while it holds, which is a state (recording, holding, overdubbing) rather than a setting, and a level that cannot grow.

  • A bowed string's loop. The bowed string's loop carries a one-zero loss and a tuning allpass, whose delay differs between a note and its harmonics, and it reads up to four cents sharp from MIDI 69 up. The blown tube's loop (three symmetric taps and a read between samples) is the pattern to follow, and it wants the same measurement first: the pitch at every bow pressure, at both rates.

  • Measured and left as they are. The three tube presets share one steady spectrum at pressure 0.6 (an odd-harmonic series at 1/n, as the reference says of the clarinet), the reedy one thinning only at 0.8; the bowed loudness dips 4 dB at pressure 0.5 inside its 5 to 10 dB range, and below 0.15 the cello drops an octave; .ponticello jumps to its second or third mode below MIDI 69, and its pitch wanders by up to 8 cents from note to note, a heavy bow near the bridge being a chaotic regime. A bow whose pressure glides to 0 slows on the string before it lifts, which takes 7 to 12 dB of the ring in the first 60 ms where a stepped lift takes 2. The plucked and struck sources scale their level by the velocity squared where the wave and the driven ones scale linearly (a half-velocity steel string plays at 0.38, a sine at 0.51), a ruling rather than a defect, since nothing promises either.

  • The soundtrack path, what is still open. An export's own effect chain is wired once, so a sketch that changes which effects are in the chain while the frames go by keeps the effects it began with in the file and is told once (a setting of those effects moves, as the level and the pressure do). Following a rewire means stopping the offline engine between two blocks and wiring it again, which cuts every tail in flight, so it waits for a piece that needs it. By reading only: the recordings a voice plays (instrument, wavetable, grainSource) are handed to the export's renderer when it is built, so one swapped at a later frame is not heard in the file. Measured and documented rather than pinned: the mixed soundtrack bends anything above 0.7, which a single loud instrument meets too (3,898 of 88,200 samples of a five-note pad chord moved). By reading only: a note inside draw() is recorded once per settle draw when OllinApp.exportSettle is above 1. The offline pan is the system's equal-power algorithm, which puts a source 30 degrees off axis in one ear alone and one directly to the side 18% in the far ear (a 15 degree sweep from 0 to 180 reads 1.00/1.00, 0.49/1.33, 0.00/1.41, 0.06/1.41, 0.13/1.41, 0.19/1.40, 0.25/1.39 and back to 1.00/1.00 behind), constant power throughout; not Ollin's to change, worth a sentence on the page when a moving source is taught.

Live rigs: physical computing, lighting, and network video

The hardware-and-network interop tier, extending the app-to-app integrations (Syphon, OSC, MIDI, the virtual camera) to the physical rig around the machine. Same posture throughout: play in the existing rig, implement published protocols from the spec, vendor nothing incompatible.

  • NDI. Network video between machines, the cross-machine sibling of Syphon and the standard of the VJ and broadcast rig. It is the one integration in this tier with no published protocol: the SDK license (the November 2024 NDI SDK License Agreement) forbids reverse engineering the SDK "or any protocols used by the SDK", so unlike OSC, Art-Net, sACN, and MIDI it cannot be written from a specification, and the only path is the vendor's own library. That license shapes how the library can be reached, and three of its terms decide the design:

    • The headers are MIT; the library is not. The SDK documentation licenses the header files to open-source projects under the MIT license (each file carries the notice that the MIT terms apply to that file only), so the C declarations can be vendored under External/ like any permissive component, with their notices intact and an entry in THIRD-PARTY-NOTICES.md. The compiled library is under the SDK license alone: redistributable "solely as used by" a product, and only under an end-user license that carries NDI's own list of terms (section 3d: no modification of the SDK, no reverse engineering, NDI's copyright notice, a flow-down asking every third-party developer who builds on the product to accept the same list). A pure-MIT repository cannot carry that list, and a framework cannot pass it on to every sketch, so Ollin ships no NDI object code, ever: no library in the repository, none in a release, none in a generated project.
    • Load the runtime the user installed. The SDK's own dynamic-load entry point exists for exactly this: NDIlib_v6_load() in Processing.NDI.DynamicLoad.h returns a table of function pointers, so the satellite opens the runtime that NDI's free installer put on the machine (the folder NDI_RUNTIME_DIR_V6 names, then the header's redistributable folder), looks up that one symbol, and calls through the table. This is the pattern code completion already uses over sourcekitd (a C interface of our own, nothing linked), with the headers vendored instead of hand-written. Without the runtime the satellite says so once, with the link to ndi.video the license asks for, and does nothing else; the sketch keeps running. The user accepts NDI's terms when they install the runtime, which is where those terms belong. Loading at run time is also what sidesteps two obligations a small project cannot credibly keep, that a product release "must use a version of the SDK that is less than thirty (30) days old" and that a product "must maintain current and complete NDI compatibility at all times": the runtime is whatever NDI's own installer keeps current, and the satellite pins only the load table's version.
    • The name and the mark. NDI is a registered trademark of Vizrt NDI AB. NDI asks that a product wanting NDI in its name ask first, that the registered mark travel with the first use in a document beside the statement "NDI® is a registered trademark of Vizrt NDI AB", and that a link to ndi.video sit near wherever NDI is used or selected. So the satellite is named for what it does, OllinNetworkVideo with NetworkVideoSender and NetworkVideoClient (as DistroAV, the OBS plugin, keeps NDI out of its name), the Docs page names NDI® with the notice and the link, and the hosts' about panels carry the statement.

    The practice in open source matches this reading: DistroAV and the openFrameworks addon both carry the MIT headers in their trees and require the runtime installed separately. One caution from the same record: the FFmpeg project removed its NDI device in 2019 over a license dispute with the vendor, so the satellite stays small, isolated, and optional, one a release could drop without touching anything else.

    What it ships, in order: send first, the Syphon parallel (publishNetworkVideo(name:) over the frameRendered(_:texture:) hook, a blit into a shared buffer, and the SDK's video send in BGRA; its asynchronous variant needs the buffer alive until the next call), so a sketch is a source in Resolume, OBS, or vMix on another machine; then receive, NetworkVideoClient(named:) with frame as an Image(texture:) and a FrameSource conformance so the vision trackers read a camera on another Mac; then audio on the same connection, which pairs with the sound tier. iOS stays out: the SDK for iOS is a static library, which cannot be loaded at run time and would have to be linked into the app, exactly the distribution the terms above refuse. Verification without hardware is a self-loop (send, find, receive in one process, the SyphonLoopback shape) beside the NDI Tools' own monitor, both of which need the runtime installed, and installing it means accepting the EULA, which is @eaviles's to accept, not a session's.

  • A pen plotter, driven live. Two published command sets reach it. The EiBotBoard firmware in AxiDraw-family plotters publishes a command set for stepper moves and the pen servo over USB serial. GRBL-family machines take G-code a line at a time, with the character-counting flow control GRBL documents, and the program Toolpath writes is what streams. Satellites cannot depend on each other, so the driver lives in OllinSerial or the port moves into a shared seam in the core. The EiBotBoard moves at the speed it is told, so the driver plans acceleration itself. Pause, resume, and pen height are live controls, and a plotter on the desk is the only proof.

  • Art-Net discovery. Art-Net 4 finds nodes with two packets. A controller broadcasts ArtPoll, and every node replies with ArtPollReply: its address and port, a short and a long name, the universes each of its ports listens on or sends, and two identity codes, an OEM code issued by Artistic Licence and an ESTA manufacturer code. A node also sends the reply unsolicited when it starts and when its configuration changes. OllinDMX sends and decodes ArtDmx only, so today a sketch is reached by a unicast address typed into the console. Both halves are small over the existing Network.framework listener and sender:

    • Being found. DMXReceiver(.artNet) answers each ArtPoll on port 6454 with one reply per group of four input ports, carrying a name the sketch sets (its type name by default), the Mac's address, and the universes start(universes:) asked for or the ones heard so far. It sends the same reply once at start() and whenever that list changes. The specification has a node wait a short random time before replying, so a network of nodes does not answer at once, and answer the poll's sender rather than the whole subnet where the poll asks for that; both are rules the spec sets.
    • Finding others. DMXSender gains availableNodes(), the house name for a listing that asks the outside world. It broadcasts one ArtPoll, collects the replies for the wait the spec allows, and returns each node's name, address, and universes, so DMXSender(artNet:) can be given a node picked from that list rather than an address copied from a console's menu. The reply's decode is total and golden-byte-pinned against the spec's table like ArtDmxPacket, and a reply that fails to decode is dropped, never trapped on (the wire harness's rule).
    • The codes. The reply cannot go out under someone else's identity. Until Ollin holds an OEM code of its own, the reply carries the placeholder the specification reserves for products in development, and a release never ships it that way: applying to Artistic Licence for the code is the gate, and the ESTA manufacturer code (assigned by ESTA) goes with it. The Art-Net credit line the documentation already carries covers the protocol; the code covers the product.
    • Proof. A loopback in one process, a receiver answering a sender's poll, pins the packets. A console or a node on the network is the only proof of the listing and of the sketch appearing in a console's node list, so the item needs a rig on the desk, as the plotter does.

All output paths are real-time side effects of draw(), so they follow the render-thread rule (non-isolated closures) and the background-producer handoff pattern the receivers already use.

New input sources

Each conforms to the core FrameSource (so the vision trackers and effect graph consume it) or reads as a simple value in draw().

  • Meters from a webcam with nothing to bring by hand. MetricDepthTracker answers in meters over a model its user downloads, because the model it was written for is licensed for research only. The video depth model the fetch script already builds has metric checkpoints too, and the small one declares Apache-2.0 on its card, so it can be built and fetched like the relative one. The work opens on two readings: that license again, in the checkpoint's own repository as well as on its card, and the upstream streaming step for the metric head, which arrived after the commit the converter pins. Then the converter writes a second package, checked against the upstream code as the first is. Its answer is already in meters, where the tracker's first model answers in an inverse depth to be scaled by a lens, so the tracker reads the model's kind from its outputs and keeps one surface for both. A comparison on the same clips says which reads truer before either becomes what an example runs.
  • Apple Pencil. Tilt, azimuth, force, and hover, on the iOS leg where a Pencil exists. Force joins the pressure Sketch already reads rather than arriving as a second thing, so a sketch written against trackpad pressure carries over unchanged and tilt, azimuth, and hover are the additions; each reads as a plain value in draw() beside the mouse and keyboard.
  • Body data, and where the Mac is. HealthKit (heart rate from a paired Apple Watch) for biofeedback, and Core Location so a Weather can follow the machine. Each needs its entitlement and consent prompt, the same "keep the easy things easy, make the prompt explicit" concern as screen capture. Location has a gate the weather reader (Docs/Helpers/Weather.md) does not: macOS 14 and later show the Location Services prompt only to an executable carrying an Info.plist. A bare swift run binary is not even listed under Location Services, and the reference command-line tool had to link a plist into its executable (-sectcreate __TEXT __info_plist) to get the prompt back. A plist embedded in the hosts carries a bundle identifier, which may change how TCC attributes their camera, microphone, and screen grants, all of which land on the launching terminal today. So the location reader ships behind a backend seam a test can fake (the Bluetooth satellite's shape), with the plist embedded only in the executables that ask for it, and its first run is a desk check of both the prompt and the other grants. WeatherKit stays out: it needs a paid developer entitlement and a signed app, and the keyless service the weather reads is enough for a sketch. Niche but distinctive and impossible in a browser.
  • Pinch and turn on the phone itself. The installed sketch's canvas (OllinMTKView) turns multi-touch off so a second finger never moves the pointer, and whether a pinch recognizer still sees that second finger is a question only a device answers. So the touch twin turns multi-touch on, keeps the pointer on the first touch by its identity, and reads the pinch and rotation recognizers beside it, each event's change handed to handlePinch(by:) and handleTurn(by:) the way the Mac's view hands its own. Its first run is a desk check on a phone, since a broken one-finger pointer is the cost of getting it wrong.
  • Typed text on the phone itself. The iOS canvas view would adopt UITextInput and feed the same typedText() and composingText the Mac's input client fills. The difference is the keyboard: on a phone, becoming first responder raises the on-screen keyboard over the canvas, where a Mac's canvas holds the keys silently. So the canvas cannot claim the keyboard on its own, and a sketch asks for it (a call that raises it and one that puts it away), with a hardware keyboard on an iPad typing without the on-screen one appearing.

New output surfaces

Ways a sketch leaves the window, beside the flat image / video / GIF / SVG / web-page exporters already in place.

  • Rumble on a game controller. The motors in a pad are the same kind of output as the shipped haptics tier, reached through GCDeviceHaptics and its localities rather than through the trackpad performer, so the pattern layer carries over and only the destination changes. Adaptive triggers and the light bar sit beside it on the same hardware. All of it needs a pad on the desk, since a synthetic controller reports no haptics.

  • The rest of the sketch on the web page. The platform stance rules out a second renderer, so what crosses is an artifact: the recorded page (Docs/Output/Web.md), whose recorder writes down what the renderer received each frame and whose WebGL2 player replays it with the framework's own shaders carried to GLSL ES 3.00 by the shader lexer the GLSL import shares, the import's function table inverted. The core changes by that one recorder and no renderer seam, and every door below keeps it so. The one player part that is not a shader is the stroke and fill expander, the framework's own OllinExpander module compiled to WebAssembly and committed as a resource, which is what lets a stroke travel as its points; a door that needs more of the framework on the page takes the same shape (a shared module the Mac draws with, built by a script, its provenance checked by a test), never a second implementation in JavaScript. The effects that stay with video: the passes that are a solve or a ladder on the Mac (the diffusion, the summed-area table, the Fourier transform, the alpha-shape design filters, the seamless clone, the depth combines, the flat light) and the simulations with pipelines of their own (the fluid, the watercolor, the self-warp, the multi-scale Turing field); each could cross as a recorded sequence of fragment passes with the intermediate formats the page can hold, a door of its own if a sketch asks for it. What goes to video: lit meshes and the rest of the 3D path beyond the raymarched field (a 3D door is a recorded thought, not a plan: a scene export played by a third-party WebGL scene library such as Three.js, its lights and materials mapped onto that library's own, at look-alike rather than exact fidelity and marked so; @eaviles accepts the fidelity cost for the sake of getting 3D sketches out at all, and it stays apart from the exact 2D player), ray-traced reflections, global illumination, caustics, the path tracer, temporal upscaling, mesh fields, compute work such as the particles and the fluids, wide gamut and HDR output, and a sketch whose input is a picture every frame (the camera, a video); the exporter refuses those with the name of the first call rather than drawing a partial picture. Target: WebGL2 first, because reach is the point and an iPhone below iOS 26 has no WebGPU, GLSL ES shares Metal's C grammar, the picture is the same, and nothing here needs compute; a WGSL back end comes only when a pass needs compute or WebGPU reach passes WebGL2, sharing the page and the plumbing so it is a second shader target, not a second exporter. Verification without eyes: every translated unit compiles in headless Chrome (WebGL compiles synchronously, so a DOM dump reports it), the page played to a fixed frame diffs against the same frame from OllinApp.image(of:frame:) under the snapshot tolerance, and the inline fragment inside a bare page diffs against the standalone file. Parked: the sketch's own draw() compiled through Swift's WebAssembly SDK against a small browser host; it would add a second sketch surface to maintain, and the recorded page with the triangle door covers more sketches. Boundaries to hold: this is an export like SVG or video; the .swift sketch stays the artifact; the page is generated and never hand-edited and shows no source; there is no share command, no hosting, and no live editor; and no renderer seam enters the core. A browser build of the drawing core is declined, since it would put the Mac-only work at risk, and the bar for it stays where it was.

  • A see-through canvas background on the web page. The page's canvas is opaque, and a background's alpha reaches nothing there, so background(Color(white: 0.9, alpha: 0.1)) shows light gray on the page where the Mac's window shows it over black. The page wants the alpha as a recorded fact of its own beside the clear's color, multiplied in as the page clears (the way a layer's clear is), so the background's color and its alpha each stay a straight line in the parameter that drives them and a color well for the paper gains its opacity.

  • A page carries the shaders' comments. The page's fragment shaders are the framework's own Metal, cut by section and translated, and the translation keeps every comment line: in a page of thin strokes measured on 2026-11-12, 41 KB of 110 KB of shader text was whole-line comments, about a tenth of a 389 KB page. Dropping them at assembly (GLSL has no strings for a // to hide in) is a few lines in WebShaderLibrary; what it costs is a readable shader in the page's source, which nobody is promised, and every recorded page's bytes move once, the front page's ring among them.

  • A shadow map for each view. A directional, spot, or panel caster's map is fitted around the frame's camera, by its target and its distance, and a layer's pass reads that one map by that fit (Drawer.shadowFitCamera). So a layer aimed far from the canvas's view is lit and unshadowed where the fit does not reach, and a layer framing much less than the canvas reads a coarser map than a frame through its own camera would render. The step is one fit for each distinct camera among the frame's views, the canvas's and each layer's own, with a pass's casters packed from its own camera again. Two things to settle first. A caster's slot is its layer of the map array today, a constant every helper that reads the primary caster names, so a map per view wants a second index beside the slot. And the systems that follow the primary caster alone (the fog's shafts, a volume's transmittance grids, the marched field's cast) each have to say which view's map they read. The cost is one more depth pass over the scene for every extra camera and every 2D caster. Beside it, two smaller gaps in a second view. A lamp read relative to the camera casts nothing in a layer's own view, since its map was rendered from where it hangs in the canvas's; a cube or a map from where it hangs in the layer's would close that. And the contact shadows, the traced and deferred reflections, and the caustics are passes over the canvas's own view: a layer handed the reflection structure would draw through the full traced build of the lit fragments, which is most of what a traversal in software costs, so that one wants a measurement before a default.

  • A take of a canvas that follows a Mac window. A live take, a still, and copyFrame() are the canvas's size, and a canvas set to .resizable is measured in the window's points. On a Retina display that holds a quarter of the pixels the window shows. A phone's full-screen canvas is taken at the screen's own pixels already. Doing the same on the Mac changes the size every frame hook hands an extension, so it wants the extensions that read those frames read first.

  • The overlay's two limits. One pane on the main display (a pane per display, as the wallpaper has, wants the hit test and the pointer per pane), and the coverage read back on the CPU every other frame (a one-pixel read from the frame's own texture would cost nothing).

  • The recipe's framework commit, where it can still be wrong. The commit a recipe names is read from two things the process can see, which source files were written after its binary was linked and where the checkout's own log places it at that moment (FrameworkCommit). Three cases stay inexact. A binary copied elsewhere carries the copy's date, so it reads as built from the checkout as it stands. A checkout whose log no longer reaches back to the build is read from file dates alone, and that names too old a commit when the commits just before the build touched only files that changed again after it. And a satellite the executable does not link counts as a change the binary missed, since nothing lists the files that reach one binary. A stamp written in at build time settles all three, at the price of a build step every consumer's build then runs (a build-tool plugin, which each consumer is asked to trust). It waits for an archive that keeps the recipe beside each picture and meets one of these cases.

  • What the export survey found, ranked. The survey of 2026-12-02 read every written file back with a reader that does not share its writer: the system's SVG and PDF renderers, ImageIO, AVFoundation, a G-code interpreter, and a stitch decoder (ExportInvariantTests, and four statements in SoundInvariantTests, each item pinned there with its measurement).

    1. What the vector record leaves. The SVG and the PDF hold what the canvas shows of a frame's shapes, layers, and merged fields, and five things around that are approximate still. A stroke aligned inside or outside is written centered; the outline moved by half the weight (Shape.offset(by:join:) with a round join is the canvas's own offset) and stroked there would carry it. A merged field's colors. The file holds one fill for the traced path, and shapes of different fills, which the canvas melts at their seams, take the first shape's; a path for each color, cut where one shape's distance passes another's, would carry the hard booleans. A hard boolean is traced like a smooth one, in cells of a pixel and a half with its corners found by their tangents, where a union or a subtraction of outlines is exact as a polygon boolean and lighter in the file. A dash on the rarer built-in shapes. The canvas leaves a heart's outline continuous under strokeDash (a dash follows the circle, ellipse, rect, triangle, ngon, star, trapezoid, and parallelogram outlines); the file dashes any outline it holds as points, so the record wants to know which shapes those eight are. A single traced shape under a scale, by reading, unmeasured: the curved built-in shapes (a heart, an egg, a moon) are traced in cells counted in the shape's own units, so one drawn at size 1 under scale(400) is traced in 24 cells across where the merged fields count canvas points.
    2. A hollow band lays its own width. The canvas gives a filled region its soft edge outside the region, so that two fills side by side meet with no seam, and a hollow band has two such edges: a 10-point ring reads 4,036 dark pixels where its geometry is 3,770, and a 12-point band on a box lays half a pixel of ink more along every rim. A band tiles with nothing, so its fill could take the exact share of each pixel between its two rims, as a built-in shape's outline does. It is a look change (a band reads about a pixel thinner) and opens with a sweep.
    3. Every path is sewn from its first point. The embroidery writer reaches a path's start with a jump and first brings the needle down one stitch along: a 20 mm line is sewn for 17.5.
    4. A GIF keeps small and late colors. The table is not split under three levels of spread, so a 16-pixel mark on a 512-pixel frame takes the ground's color; a shared table admits a frame only when eight pixels change; and GIFWriter rounds each delay on its own (ninety thirtieths hold 2.7 s).
    5. Sound and picture in one file. H.264 and HEVC hold even sizes, and an odd canvas (the A4 preset is one) is resampled with no word. Under slow motion by drawn frames a note is heard at the sketch's time, half the file's, and the export page says both things. A skip that is not a whole number of frames moves the sound 40 ms. A live recording finds two of five instruments.
    6. Plates. A screen on the axes at a whole-pixel pitch has nine tones (60% prints as 50%, and that is the yellow plate); a wide canvas's frame is declared Display P3 after it was flattened (10 to 14 levels off); the process path lays a see-through pixel over white in encoded values.
    7. The machine files' small batch. The G-code header's travel leaves out the legs from and to X0 Y0. A circle's sides are counted before the transform (48 for a scaled unit circle, in G-code, embroidery, and hatching). A profiled stroke plots its outline, a clear stroke is plotted, and a stroke on its clip's edge plots half. A DXF writes circles last and layers whole where its page says nothing is reordered. An open mesh is flipped by where it sits, and the text mesh formats write a coordinate under a ten-thousandth as 0.
    8. A butt end ends where its path does. On the canvas a butt end carries half a pixel of ink past the path's end, so a dash of 18 is 19 long; the files showed it.
    9. Read, not measured. A non-finite --seconds, --bitrate, or --skip reaching an integer conversion that traps; a recipe holding a non-finite parameter; the embroidery header's fixed fields under a label outside ASCII; the spot solver against a brute-force minimum; and a pass over the output pages for the sentences the items above contradict.

Rendering and color frontier

Deeper use of the Metal core and Apple displays, every item opt-in so the 2D path stays untaxed.

  • Dolby Vision. The static HDR10 metadata an extended sketch exports describes the whole file; Dolby Vision carries per-scene metadata instead, which a generative piece could drive from what it knows it just drew. It needs the licensed encoder path rather than AVFoundation's plain HDR writer, so it is a licensing question first and an API question second.

  • The layered lobes in a traced frame. The clearcoat, the fabric sheen, the anisotropic streak, and the scattering under a surface trace as their metallic-roughness base. Each is a real lobe rather than a look, so each wants a sampled form in the kernel's own estimator and its pairing: the coat a second specular lobe over the base with the base dimmed by the coat's Fresnel, the sheen its own distribution with the base scaled by the sheen's directional albedo, the streak the anisotropic visible-normal sampler, and the scattering a walk under the surface or a diffusion profile at the hit.

  • What a look leaves out of a traced frame. A look is drawn by the lit fragment's formula at every vertex the camera sees (ollin_pt_direct, ollin_pt_look_layers), and each limit below is a deliberate match to the window that a physically based finish answers today. The standard finishes' highlight answers the light list alone and never mirrors the room or the environment. The hologram's rainbow answers the punctual lights alone. A light's softness wrap is not read by the tracer at all, where a traced shadow stands in for it, so a terminator wrapped in the window is a hard one in the export. And a cel band or a highlight under a panel is the window's whole-panel value times the share of the panel one ray per sample sees, an unweighted share, which reads a little bright where the hidden part of the panel is the part nearest the surface (the weighted form is the ratio estimator the raster's traced panel shadow uses).

  • What an outline's exact band leaves. A built-in shape's outline is the share of each pixel between the band's two edges, each read as a straight line at the pixel's scale, and a circle's outline a few pixels across is the ring itself, taken exactly. Four things around that are approximate still. An ellipse that is not a circle. It has no exact ring: the curve a fixed distance from an ellipse is not an ellipse, so the two-disc form does not apply, and its band reads a straight edge where a pixel sees both sides. Measured at a hundred grid places, half a pixel wide: the ink swings 7% at 4 by 2 px across and 28% at 2 by 1. A small ellipse wants the ring of two scaled ellipses where the two curves differ by under a twentieth of a pixel (by a calculation, below about 6 px of major radius at hairline widths), faded into the band above that. A sharp corner. The band reads the distance's two screen derivatives, and across the crease a corner makes in the distance field the two lanes of a 2x2 block sit on different edges, so the pixel at a corner reads one edge at some angle between the two: 5% of the outline of a box 8 px across at 1 px wide, 14% at half a pixel wide, falling with size, and a box 2 px across swings 32 to 54% with its place. An exact corner is the union of two bands, which a box, a triangle, and a polygon could each state from their own edges. A hollow shape and the ring shape under a few pixels. Both read their band from the distance's screen derivatives, which collapse at the center of a small one as a disk's did; the hollow disk wants the solid disk's ring forms. Shapes of two kinds drawn turn about. A run of analytic shapes draws through the fragment built for what it holds, and a long stretch of one kind is cut into a run of its own. Outlined circles and outlined boxes that alternate, call by call, never make a stretch: they stay one run through the fragment with everything in it, which measured a fifth more GPU time than the old single fragment (16.8 ms against 14.0 on 20,000 of them). Cutting at every change of kind would be a draw per shape. What would close it is a cheaper whole: the disk's ring is what the other shapes pay most for carrying, and a build bit for "a ring small enough to be taken exactly" would leave it out of a run whose circles are all large, if the drawer can say that for certain under a layer's scale, a replayed batch's transform, and a camera.

  • What a stroke's exact coverage leaves. A stroke's fragment reads how far inside each of its two edges the pixel sits and takes the exact share of the pixel between them, so its ink is its width at any angle and anywhere on the grid. Five things around that are approximate still. A flat end. A butt or square end fades over one pixel wholly past the end line, so it lays half a pixel more than its length at each end (a 3 px dash reads 4); the fade sits there because two strokes drawn end to end then meet with no seam between them, the way two fills do, and a fade that straddles the end wants that seam answered first (the second stroke would need to know the first). The end's two corners are one diagonal ramp where the true corner is two edges, which wants a third number on the vertex. A stretched transform. The expander's fringe is one number (the transform's mean scale), and the rim past the edge and the hairline's one-pixel floor are sized by it: the coverage itself is exact under any transform, but under scale(2, 0.5) the rim is short along the squeezed axis, where the multisample mask can cut a pixel that carries coverage, and a hairline's footprint is a pixel on average only. A fringe per segment, from the transform and the segment's direction, closes both. A retained batch replayed smaller. The rim was laid out at record time and scales with the replay, so below about seven tenths the mask clips again; the replay's vertex stage could push the rim out by the replay's scale. A ribbon. A stroke under a medium or a shader paint has room on its vertex for one of the two edge distances and rebuilds the other in the fragment from the ribbon's place across (ollin_ribbon_coverage); past a flat end it reads one edge at full thinness, so a hairline's end under a medium is a pixel short, and a hairline's join subtracts a far edge a round join does not have. The second slot of a ribbon's vertex pair repeats the position, which is room for the second number once symmetry's replication stops folding that slot. The page's disk quad. The Mac sizes a solid disk's covering quad by a pixel and a half where that is more than two of the shape's own units, so a dot held at a pixel's footprint is whole on a canvas zoomed far out or in a coarse layer; the page's vertex stage still adds two units, and wants the surface's texels per point to do the same. A line through the camera in a coarse layer. A 3D line's fringe is one canvas pixel whatever it is drawn into, where a 2D stroke's follows the layer's texels.

  • What a dot's exact coverage still costs. Three things a profile would look at first. A disk's fragment carries the walk. A disk drawn through the analytic-shape fragment can take any of the three forms of the share, and the walk round a parallelogram pixel is compiled in for every one of them though only an ellipse turned off the axes, or a sheared transform, reaches it; on the particles' fragment the same walk, never taken, measured 1.8 ms on a million marks (2026-11-12), which is why the particles' own entry (squareDotCoverage) leaves it out. The shape fragment is built for what a run holds (ShapeNeeds), and that set has room for one more bit: a run in which no disk is a turned ellipse and the transform has no shear builds without the walk. A light disc works its pixel out per fragment. The pixel's size in the disc's units is the same for every fragment of a particle, and the vertex stage could hand it over flat with one over the radius; each fragment takes two screen derivatives, a division, and a square root before it can say it is inside, which is most of what a large disc's interior pays over the old ramp. A thin line's ribbon is four pixels wide. The rim runs a pixel and a half past each edge so that every pixel carrying coverage is whole under the multisample mask; by the sample pattern (no sample sits more than 7/16 of a pixel from a pixel's center on either axis) 1.33 would do, a twelfth fewer fragments on a one-pixel line, and it wants the rim test's plants run again before it is believed.

  • A point cloud's splat under a pixel. By reading, unmeasured: a 3D point's quad is its radius and three tenths more (ollin_point_vertex), while a splat under a pixel across is drawn at a pixel's footprint with its coverage scaled by its area, which reaches a full pixel from its center. The quad of a far splat is then smaller than its footprint and the multisample mask keeps only the samples the quad reaches, so a distant cloud should fade faster than its points' areas. The margin wants a pixel and a half in view units at the splat's depth, as the analytic shapes' quad takes it on the canvas; the measurement is a row of splats receding, each one's light against its projected area.

  • What a curve's cut leaves. A curve is cut into enough straight pieces to stay within a tenth of a unit of itself, counted from its bend, and the calls that draw one (drawShape { }, drawCurve, drawBezier) cut it for the pixels it lands on under the current transform. Four things are outside that. An imported drawing drawn enlarged. An SVG is flattened when it is read, in the file's own units, and keeps only the points: an icon authored at 24 units and drawn 500 px wide shows facets of a pixel and more. The file's curves want to be kept beside the points, so drawSVG(_:in:) and fitted(in:) can cut them again at the size they are drawn. Text under a scale. A glyph's outline is cut at the text's size, so text drawn small and scaled up by the transform shows the same facets; the outline cache is keyed by size and could be keyed by size times the transform's scale. A shape made beforehand. Path.shape has no transform to read, which shape(tolerance:) answers by hand; a Shape that kept its path could be cut again when it is drawn. The floor. A curve is never cut coarser than one piece for every 8 units of its length, which is what a width profile and a per-vertex gradient bend at; a long gentle curve spends several times the points its flatness needs, and a profile sampled along the length instead of at the vertices would let the floor go. The cut is at even steps of the parameter; a cut by curvature spends fewer points on a curve with one tight end.

  • A light mark over a dark ground. A stroke's, a dot's, and an outline's partial coverage is remapped so that a dark mark over a light ground shows a pixel half covered as half way to the ink (perceptualCoverage), and the remap is the same whatever the ink. It is right for the case it was made for: a hatch of 1 px black lines at a pitch of 4.3 px reads tone 195 to 196 at 0, 10, 30, and 45 degrees, where the even tone is 196, and one line shows the same weight at every place across a pixel. Over a dark ground it leans the other way. The same hatch in white on black reads 97 to 100 where the even tone is 59, and one white line 1 px wide shows 1.0 pixels of light when it sits on a pixel and 1.8 when it straddles two, so a light hairline looks heavier than a dark one and its weight breathes as it drifts (computed from exact coverage, 2026-11-30; with no remap the hatch reads 82 to 84 and the line swings to 1.47). The curve that is even for a light mark over dark is the mirror, the alpha a half-covered pixel needs to land half way up in display values. A fragment does not know its ground, so the open question is what to key the choice on: the ink's own lightness is the candidate (a light ink is usually over something darker), blended between the two curves through the middle grays, and it wants to be judged on hatches at actual size, dark on light, light on dark, and gray on gray, before anything moves.

  • A round cap's ink. A round cap, a round join, and the dot a dash of no length leaves are polygons with their corners on the circle, so their sides run up to a tenth of a point inside it. Beside the exact disc the 2D shapes draw, edge pixels read lighter: on a disc 20 points across, 12 levels on most of the edge and 34 at four places. A polygon with the circle's own area (corners a hair outside, sides a hair inside) would lay the disc's ink at the same triangle count. It moves every round-capped stroke by a fraction of a level, so it opens on a hatch of round-capped dashes measured old against new, and on the snapshot suite.

  • Two halos at a seam's end. The inside-biased fill ramp is what lets abutting fills tile without a seam, and it holds to the byte along the seam; where a seam meets the tiled region's outer edge the two fills' halos overlap on the one pixel outside the corner and that pixel takes a second coat, up to 67 levels darker than the whole rectangle's (one pixel per seam end, a notch along the boundary of a tiled region on a background). Pinned (twoHalfRectanglesAreOneRectangle, aGridOfAbuttingTilesIsOneSolid). Small: the wash's dry end picks the ground up into the paint and its glaze does not, so the first quarter of water darkens a black wash over white by 0.5% before the glaze thins (aWashesDarkeningIsMonotoneInItsWater).

  • What the text survey found, ranked. The survey of 2026-12-02 read text against the font's own tables and against rendered frames (TextInvariantTests, where each item below is pinned with its measurement). A fix turns its pin green, and the pin is then taken out.

    1. A box holds its text. drawText(_:in:) under the default alignment puts the first baseline on the box's top edge, so the block stands one ascent above its box (ink from 83 for a box at 100, at size 24). In a box the default should read as .top. Five examples and a Guide figure are tuned to today's place, so it is a look change and opens with a sweep.
    2. A glyph's outline is cut for the pixels it lands on. Every glyph is cut to 0.3 units of the text size, whatever the transform. Text scaled four times is a polygon (1,081 pixels past 32 levels), a round letter under 16 points loses 7 to 11% of its ink, a thin face drops strokes under half a pixel, and solid type holds 2.6% less than its outline. The cut wants curveTolerance under the current transform, kept by scale.
    3. A line end is a line end, and a tab is a few spaces. Every layout and all three font readers split on \n alone: text with Windows line ends is one line, a BDF or a Playdate file saved that way throws, and a Hershey file keeps one glyph of 96. A tab is 27.4 times the text size wide.
    4. A right-to-left paragraph in a box. A wrapped block is laid out line by line, each from its own first strong letter, and the hang comes off the same side whatever the direction, so a Hebrew line's first letters leave the box by the stop's width.
    5. The bitmap font's line. The block's height is taken as the capital's seven rows where the line is thirteen: .bottom and .middle land 29 to 60 points off at size 70, textDescent() has the wrong sign, textBounds misses the ink, a mosaic's block overruns its cell by most of a cell, and a capital is eight sevenths of the text size. With it: a second coat along the seams of see-through bitmap text, a row held to 32 pixels, the stamped route's different pixels, the slit where textToShapes doubles a square, and a mosaic ramp remembered under a key two fonts can share.
    6. The system face at its size. The system faces are laid out at one point and scaled, so a line is 7% wider than the system sets it at 12 points and 21% at 72, and an emoji at 100 points is 93 across where the font draws it 100. This is the default face, so it is a look change and opens with a sweep; a layout kept by size is the remedy to measure first.
    7. One weight for a word. The atlas remaps its edge coverage to perceptual alpha and the filled outline does not: 42% more ink at 16 points in linear light, dark on light and light on dark alike. Which reading is the text's is decided with the strokes' light-on-dark question. The atlas also gains 4.7% turned 45 degrees.
    8. Small. Stroked text on the plain run uses the last plain-quad stroke path and carries 11% less light than the stamped routes; a one-word justified line is letter-spaced to the box; a long dash and an ellipsis lie flat in a column set in a Latin face; text along a closed path skips the closing side; an emoji takes tint and vanishes under noFill(), and a second picture in one piece is not stamped; the stroke font's top anchor ignores its brackets.
    9. Read, not measured. A Playdate glyph narrower than its cell (aligned by the cell's width); Khmer syllables arriving as two pieces, the vowel first; and a pass over Docs/Drawing/Text.md for the sentences the items above contradict (what the baseline means in a box, crisp at any size, a stamped glyph to the pixel, hanging only where a stop would not fit, the text size as a line's height, an emoji's fill and stroke).

Authoring and editor tooling

Editing experiences the live-reload core makes possible, and the place Ollin states its line on AI.

  • The boundary, stated first because it is load-bearing and public. The README promises it ("It's a tool for making art ... Ollin is not a generative-art model"), and it extends to any AI feature: AI helped build the framework and plays no part in the work made with it. Not as an author of a sketch, and not at the controls either. The tidier line, operate the framework but never author the work, does not survive contact with generative art: the parameters are the work (a palette, a density, a speed chosen by hand is the hand), so a model moving them toward a phrase is a model making the piece; it cannot tell a development nudge from an aesthetic choice; and the exception it forces into the README's promise costs more than any such feature is worth. Ruled 2026-09-07 over a working slice (dbb93dbc, the on-device model moving @Params toward a phrase, reverted the same day; it also moved parameters the words never named). What stays: models that read the world (the perception tier, depth, listening) are input the way a camera is, credited in THIRD-PARTY-NOTICES.md, and never draw. A proposal that puts a model between the artist and a value, a color, or a picture is out by this ruling, not parked.
  • No node editor. The effect graph (compose / Filter / Combine), the SDF combinators (SDF / SDF3D), and the Visual chains are graphs written as code, which makes a node surface look cheap: a presentation of a structure that already exists, round-tripping to Swift. In practice it needs an interface of its own (selecting a node, editing its settings, wiring it), and once the work can be done in boxes it moves out of the sketch, which is the node-graph studio the scope rule turns away. The graphs stay code, and @Param already gives their values a control. A code-less, node-based Ollin could come one day as a separate app built on the framework, taken on for real demand and never as a core feature.
  • More of a package in the live window. The live hosts compile the Swift targets a sketch imports themselves, against the framework they carry (SketchLoader.buildDependencies), and refuse by name what that cannot build: a target with C-family sources, a system library, a binary, a macro, a plugin. What SwiftPM would have to build: for a dependency that never reaches Ollin (swift-numerics, whose RealModule sits on a C target, and swift-algorithms through it), swift build --target <dep> in the package's own .build is safe, since no second framework is involved, and it handles everything SwiftPM handles; the host would then link the objects it left (.build/debug/<Target>.o) into a dylib whose link leaves nothing of Ollin's to resolve, and pass -I on the built modules and the generated module map. The costs are known from measuring the route on a Swift target: 1.4 s on every evaluation to learn nothing changed (so the host's own stamp of the dependency's files decides whether to ask at all), 1.8 s after a change, and a wait behind any build that holds the folder. A dependency that does reach Ollin has no safe form of this, since SwiftPM would build a second framework and compile the dependency against it; a C target under an Ollin-using Swift target would be built by SwiftPM alone and the Swift above it by the host. A debugger's view: a dependency's module is compiled under a fingerprinted name behind a module alias, so String(reflecting:) and a backtrace show Petals_3fa9…; a demangling pass over what the hosts print would put the real name back. The phone route (PhoneProject) references the one sketch file and its assets; a target's other .swift files and the targets it depends on would join the spec's sources the way the assets do, read through the same SketchTarget, and the tether's watch would follow watchFolders(). Completion in the live-coding editor hands the service the buffer alone, so a helper's names do not complete; completionArguments(sourceFile:) would add the target's other files and the import arguments of the dependencies already built, from the caches only, so a cold read never holds the editor up. A shape drag in a helper file is refused by name (the drag host owns one file, ShapeDragHost.sourceName); a host that answered for every file of the target, by the site's file name, would let it write the helper.
  • The doc comment above a @Param as its description. help: is the description the framework carries: the parameter owns it, so it reaches the listing, an exported page, and a host someone else writes. A sketch that already explains every parameter in a /// comment above the line would rather not say it twice, and a property wrapper cannot read the comment above its own declaration (an attached macro could; @Param is not one, and making it one is a larger change than the comment is worth). What can read it is a host: OllinLive and OllinLiveCoding already read the sketch's source by the byte (the save button walks forward from each @Param attribute to its var; a drag rewrites a call's arguments), so a scanner that gathers the /// lines directly above each attribute, keyed by the property's name, could hand the inspector a description for every parameter whose help: is absent, with help: winning where both exist. The seam is SketchSession, which holds the source every compile reads, to the shared ParametersListView, as a lookup beside the handles (a ParamHandle is the parameter's own and knows nothing of the file). Open: whether a sentence written for the code's reader is the one the tuner wants; and that the sketch as an app, the gallery's listing, and --list-params have no source at hand, so the two routes would not be one feature, and a sketch that wants its description everywhere still writes help:.
  • Undo in the inspector, what is still open. The window's Undo covers a parameter turned by hand in the parameters list, one gesture a step. Four things are outside it. A value moved from elsewhere (a fader, an OSC message, the remote surface, a cue) is not a step, so Undo after a fader move goes to the last hand edit before it. A smoothed parameter reads as its gliding value, so a second edit made while it is still gliding undoes to a point on the glide rather than to the value the first edit asked for; the step wants the parameter's target, which AnyParam does not hand out. On a phone or a tablet there is no button to hold, so a drag paused for longer than the quiet time is two steps. The timeline's keys and the inspector's values are two lists: Undo with the panel in front takes back a key and with the window in front a value, so a hand edit that also re-keyed a track is undone in two places.
  • A device menu in the live hosts. A menu in the menu bar of OllinLive, OllinLiveCoding, the gallery, and a standalone sketch's window that lists the cameras, the microphones, and the speakers, checks the one in use, and switches the running sketch to another without a relaunch; later the other lists a sketch picks from (MIDI ports, serial ports, displays). The case for it: a Mac lists every camera it can see, a phone nearby and a virtual camera among them, and which one a sketch gets is the system's call (one desk Mac named the Ollin Camera its default). The framework first, as the architecture rule asks: each device class names a specific device in code and lists what is there in the house form (Camera.availableDevices(), the same on AudioInput and on the sound's output), and the menu is a lens on that. The menu wins in its own window: a choice made there is the person at the controls, so it replaces the kind a sketch named (Camera(.continuity)) as well as the default for as long as that host runs it, and the menu shows the kind the code asked for so the override can be seen; a menu that left a sketch on the camera its code named would read as broken, above all during a set. It is never written into the sketch: a choice of hardware belongs to the machine, so it lives in the host's own defaults, the .swift (read on another Mac, with devices it does not have) keeps saying what it asked for, and a standalone run uses that. The camera has a system mechanism to build on: AVCaptureDevice.userPreferredCamera is set by an app when its user picks a camera, and systemPreferredCamera is that choice while it is connected (or a Continuity Camera the system prefers), observable as it changes. So the menu sets the first, .default follows the second, and the fallback order of Camera.choice applies when the system names none (both read nil on the desk Mac in a plain process). A switch keeps the object: the trackers find their analyzer by the source's identity, so Camera changes its session's input in place rather than becoming a new camera. The microphone and the speakers are chosen for the sketch's own engine (the input and output units' current device), never by changing the system's default, which would move every other app's sound too. The name: the menu bar's "Camera" menu is already the 3D view's (Reset View, Front, Back), so this one wants another, "Devices" being the plain choice.
  • More menus to fold. A ParamChoices roster that declares paramChoiceGroups gets a menu of submenus, and Easing declares one. Material's thirty-one built-ins are still one list, and want a grouping that reads as the materials page reads (the plain finishes, the stylized, the iridescent, the soft, the metals, the glasses) before the menu takes it. A ParamOption enum has no way to declare groups; the same optional list would give it one. The exported page's controls, the remote surface, and the phone's list all read options flat, and each would read groups the way the inspector does.

Collaboration and multi-device

Apple-native, low-ceremony ways several machines share one piece.

  • SharePlay co-creation. Not a feature but a transport: the room's session logic (membership, the shared clock, last-writer-wins parameters) is transport-independent behind RoomTransport, so the whole idea is a GroupActivities-backed transport plus the app entitlement. The constraints that shape it: the com.apple.developer.group-session entitlement applies to apps only (macOS 12+), so it reaches a sketch bundled as an app and never a terminal-launched one; the session context is system-owned (two Apple IDs on a live FaceTime call) and both Macs need the same app installed, so parameter, seed, and clock sync work while co-editing the code cannot (an edit is a rebuild and a redistribution); GroupSessionMessenger is a small-payload channel (reliable and best-effort modes), which fits the room's wire and nothing heavier; and a proof needs two Macs, two Apple IDs, and a real call, so no CI holds it. One check to run before any code: whether the entitlement is available with Developer ID signing outside the App Store. Gated on a public repository, a verified real-signing run for the app kind, and demand.

Learning: the Guide

The narrative-learning tier's design home is the Guide/ tree itself: the writing rules and pedagogy live in Guide/AUTHORING.md, and the chapter queue, per-chapter briefs, feature-coverage matrix, and roadmap parking lot in Guide/PLAN.md. Design decisions about the Guide go in those two files, not here.

Opening the repository

Everything a private repository never had to answer for arrives at once when it opens. This section covers how Ollin presents itself to somebody who has not seen it before, which is a different question from what it can do. The observations below came from reading the public face of vgpu (credited under Directions ahead in ATTRIBUTION.md) against ours, so the sizes and ratios are measured rather than guessed.

  • The README does three jobs, and the split between them is what a presentation pass protects. It pitches the project, states positions (Apple-only, the AI posture, licensing), and points at the catalog, which lives at the top of the reference index because an index is where an enumeration reads well and a front door is not. The pitch stays above the fold, and the position statements are load-bearing enough to keep but not to lead with. The opening as it stands (title, one line, a nav row, the facts list, the status callout) is the part that already works, so the pass named under Toward 1.0 should protect it rather than rewrite it, and anything that grows the file past a pitch should ask which of the three jobs it is doing. Applying that question once (2026-09-19) found two sections doing a fourth: Live reload and Export had grown into a manual, with flag-level and option-level detail the pages they link already carry, so the claims stayed and the usage went back to those pages. Four headings are load-bearing beyond the README itself, because the website's front page names them (SiteHome.rows: Hello, circle, Run it and Install side by side, What's in it), and the run command under Run it is the one the site rewrites per sketch, so neither can be renamed casually. The remaining question for the pass at the tag is Documentation's nine-item starting list, which is a curated route into the reference and reads as one, but sits under a paragraph that has just called Docs/README.md the annotated index.
  • The inward and outward tiers are wildly out of proportion, on purpose, and worth watching anyway. CAPABILITIES.md, ARCHITECTURE.md, CLAUDE.md, and this file come to roughly 1.3 MB of contributor and agent-facing prose, against a 47 KB README. About 28 to 1. Each of those files earns its size (CAPABILITIES.md exists because CLAUDE.md outgrew the context budget it has to fit in every turn), so this is not a cleanup task. It is a reminder for the release pass that the 40 KB is the part anybody outside will actually read, and that ATTRIBUTION.md, unusually thorough for a project this size, is one of the better arguments Ollin can make for itself.
  • The agent-facing question, stated so it can be decided rather than drifted into. What is left of it is one convention: the reference served over a tool protocol, from the same pages the CLI prints and the site writes as an index. What is not settled is whether Ollin wants it, and the reason to decide deliberately is that the project has a public position on AI which this touches. The distinction that seems to hold: serving accurate reference to an assistant so a person writes their own sketch is the same act as serving it to a search engine, while anything that produces sketches is the thing the boundary refuses. The practical argument for is that an assistant working from guesses invents API and the person blames the framework, and it is stronger here than for an established framework, because no model has read an API this new. The argument against is that the gesture reads as endorsement whatever the README says. The fact that keeps the question cheap to leave open: a general-purpose documentation server already reads an index of the shape the site writes, so a server of Ollin's own buys a search and fewer round trips rather than access to the reference at all. Both arguments are real, so this stays a question with @eaviles's name on it.

A third-party extension ecosystem

The contributed-addon ecosystems are a large part of why p5.js, openFrameworks (ofxAddons, the ofx* convention), and OPENRNDR (orx-*) have the reach they do, and it's the one incumbent advantage no Ollin feature closes. SwiftPM makes the mechanics free: a third-party Swift package that declares Ollin as a dependency and adds types or SketchExtensions is already a working extension, installed by URL like any Swift package. So the work is not plumbing, it is convention and discoverability, and what remains is the discoverability half:

  • A curated list. An awesome-list-style index so extensions are findable without a registry of our own. It needs published extensions to list, so it follows the repository going public rather than leading it.
  • Ollin's own front door. The listing on the Swift Package Index. It is a pull request against the index's own package list, which is the one step that cannot be taken from inside this repository, and it is worth taking deliberately: the listing carries a compatibility matrix, and the rows for the platforms this package does not support read as red rather than as absent, which is correct and still worth expecting.

Two facts about the surface constrain anything built on this tier, and both are easy to assume the other way round. Drawer is internal, not public, so an extension extends Sketch and the public value types rather than the renderer's recorder. Filter / Generator / Sim / Combine are structs with no public initializer, so the effect catalogs take no new cases and the way into the render graph is a Shader through the .shader(_:) factories. Opening either would be a deliberate API decision, not a small one. The current seams are cataloged in Docs/Tools/Extensions.md.

License hygiene carries over: a third-party extension is the author's own package under their own license, not bundled, so it sidesteps the vendoring rules entirely.

Accessibility and inclusive text

Inclusivity on the platform's native support. What ships is in Docs/Helpers/Accessibility.md; one decision from it carries forward, which is that nothing is applied on a sketch's behalf, since only the sketch knows which of its movements, distinctions or shapes is load-bearing. One idea is on record as deliberately out, and the reasoning is what guides the next person who proposes it:

  • Descriptions Ollin could derive. A sketch writes its own words today. The vector recorder holds one frame as typed commands (SVGCommand). Shape kinds, positions, sizes and colors are all there, so that is the seam a derived summary would be built on. It stays out for now: a list of what was drawn is not a description of what it means.

Testing

What the coverage reads (2026-10-10 and 2026-11-11, Scripts/test.sh coverage; Tests/README.md § Coverage, and the hosts' own gates) leave without a test, by class, with why. At the second read 84.1% of 205,899 lines ran; of the 32,724 that did not, these are the classes, largest first.

  • SwiftUI views (the inspector, the timeline panel, the host windows, the cues card, the axis widget, the generator's stages). A view test needs a driver, and the one there is drives the parameters list: OllinLive --inspectortest posts clicks, keys, and a drag to a window built in the process, finds the controls SwiftUI draws itself through the accessibility tree, and sends undo down the responder chain (Tests/README.md says how). What it has not been pointed at: the curve and bars rows, the palette strip, and the XY pad, whose elements in the tree are unread; a menu opened by a click, since opening one starts a tracking loop a posted event does not end, so the grouped menu is read and chosen from without opening it and the flat menu and the segmented control are not driven at all; and the timeline panel and the cues card, which are windows and cards of their own with no gate. The same three moves (a view by class, an element by role, an action by selector) would carry each.
  • Device and network backends (Core Bluetooth, the phone and Record3D devices, the room's local-network transport, the laser DAC's live socket, the WebSocket push transport; about 1,500 lines). Each is tested through a stand-in at its seam; the live half needs the device. A transport that speaks to a server on the loopback is the exception that has a test (the web socket feed, the MQTT client, the laser DAC's stream); the ping a web socket sends every twenty seconds is the part of that transport no test waits for.
  • The command fronts (ollin docs, ollin new, the tether, the snippet and figure tools; about 3,800 lines). Scripts drive them (check-snippets.sh, guide-figures.sh, preflight.sh), so they run on every relevant commit without a test reading their lines.
  • Live-only paths: the live window's own half of SketchView.swift (1,930 lines: the window modes, AppKit's events, the display link), startRecording(to:audio:) (the live loop's take), the environment downloads (the network), the Vision and sound models' live runs (a camera, a model); their failure sentences are now held by VisionStatusTests.
  • A path the desk never takes: the raster point-light shadow (encodePointShadowPass) runs only without ray tracing, so a desk read reports it unreached while the CI runner takes it every run.
  • Public forwarders the pair tables leave out. Six tables pair a bare call with its core (SwitchFormsTests, QualityFormsTests, CameraRigFormsTests, CombinatorScopeFormsTests, TextMetricFormsTests, SimFactoryFormsTests, beside BareFormsTests and BareForms3DTests). Outside them: the switches whose feature shows only over several frames or only in a live window (noMotionBlur, noTemporalUpscaling, noFrameInterpolation) and the two that need a GPU that traces to show at all (noCaustics, noGlobalIllumination), which are read on the setting they clear and not on a picture; the quality: arguments of the export calls and of Filter and Combine, which are not setters on a sketch; and makeLineSpray, which has no initializer beside it to pair with.

Examples folder

The Examples/ set is maintained: small, runnable sketches that double as the "learn it in an afternoon" on-ramp and the compile-tested showroom (current status, the OllinExamples gallery, and CI are described in CLAUDE.md). The design decisions worth keeping, because they guide extending the set:

  • Layout organized by topic. Group by feature so they read as a learning path: basics, color, motion, patterns, text, and so on. Each example is one minimal, focused sketch that shows one idea well. The top Examples/README.md indexes only the categories (a table linking to each category folder); each category folder carries its own README.md listing its sketches, so the front page stays small as the set grows.
  • Per-example folder, generic Sketch.swift. Each example lives in Examples/<Category>/<Name>/ and its file is always named Sketch.swift rather than <Name>.swift, so the example's identity lives in the folder name, not a repeated filename. The per-example folder is also each sketch's home for its own assets (fonts, images, shaders sit alongside Sketch.swift), which is the reason not to flatten the layout.
  • The single-file @main mechanism. SwiftPM allows only one entry point per executable target, so each example is its own small executable target (scripted as the set grows, rather than hand-maintained). Adding static func main() to Sketch on the core (extension Sketch { static func main() { OllinApp.run(Self()) } }, which needs a required init) makes a file self-contained, so an example is just @main final class HelloCircle: Sketch { … } with zero boilerplate. Built once on the core, so any single-file sketch flow (examples, scripting, embedding) can reuse it.
  • A feature isn't done until it has an example. Each new primitive or capability ships with one. Examples are also a forcing function for API quality: if the example is awkward to write, the API needs work.
  • Snapshot coverage grows with the set. Compile-testing proves an example builds; render-correctness snapshot tests (Tests/OllinTests) prove it still renders the same: a sketch is rendered headlessly through OllinApp.image(of:) and its pixels diffed against a committed reference. A new primitive earns a small, deterministic fixture and a recorded reference, so the catalog stays regression-protected as it grows. The reference is GPU-specific (anti-aliasing differs across GPU families), so references are recorded on a developer's machine (OLLIN_RECORD_SNAPSHOTS=1) and the comparison stays a local gate, kept out of CI; keep new fixtures flat and pixel-friendly so the mean-difference tolerance has room. A peer Swift and Metal framework does per-primitive snapshot tests the same way (a frame hook gated behind #if canImport(XCTest), using pointfree's swift-snapshot-testing), a reference if richer image diffing is wanted later.
  • Reuse the samples elsewhere. Examples can seed the Swift Playgrounds .swiftpm starter and serve as starter templates for new sketches. Author once.
  • A candidate list read off a peer gallery. The vgpu example gallery (MIT, Vercel Labs; credited under Directions ahead in ATTRIBUTION.md) was read the way the shader catalogs are read, for which pieces are worth having rather than for code, since it is WGSL against WebGPU and nothing in it transfers as source. Most of it maps onto capabilities Ollin already ships (a fluid solver, instanced draws in the hundreds of thousands, a recorded batch, an environment map lighting a scene, an SDF clip through a mesh, depth estimation and classification through Core ML, a hand-tracked canvas), so those are covered and want nothing new. One is the natural first reader of a shipped capability, a light-painting scene over the light a flat sketch works out for itself, and three wait on the tiers above: an ocean surface for the 2D transform, a glass object standing in a drawn scene now that it has something to stand in, and one scene shown through each anti-aliasing path at once for the post-process pass, which teaches the four-way split better than prose does. Two of the gallery's pieces are its own and a sibling product's branding, so they stay out. The license permits redistribution, but a rewrite in Metal from the same published techniques is what will actually happen, so each one carries the per-example header naming the gallery entry as inspiration alongside the technique's canonical source, per the sourcing rules in CLAUDE.md.
  • Recreations grow by artist, and double as a build-it-to-find-the-gap forcing function. The Examples/Recreations/ set (organized by artist, homage framing, per-sketch provenance; see its README and the sourcing rules in CLAUDE.md) includes Vera Molnár, Georg Nees, Frieder Nake, Bridget Riley, Osamu Sato, Nick Cave, Jared Tarbell, Manuel Felguérez, Manfred Mohr, Josef Albers, John Whitney, Sol LeWitt, Casey Reas, Vicente Rojo, Ryszard Winiarski, Hassan Sharif, Owen Schuh, Monir Shahroudy Farmanfarmaian, Gego, and Vladimir Bonačić. Candidate additions, and what each would exercise:
    • Inspired-by only (living/commercial: credit, never port source). Tyler Hobbs (Fidenza, flow fields, which the GPU Particles/CurlField path already renders at scale) and Anders Hoff / inconvergent (differential growth). These pair with the generative geometry tier: Hoff to differential growth, Hobbs to flow fields. (Candidate list sourced from mining the /algorithmic-art skill; it names no artists itself, so these map its technique families to the canonical figures.)

Developer experience: Swift-idiomatic ergonomics

A standing track, not a one-time task: keep mining Swift idioms to make the API read better than a literal p5 port would. "Feels like p5" is the shape (bare calls, terse positional args, motion by default), but Swift's type system lets the same call carry more meaning with no extra ceremony, and that's a differentiator worth pressing. The exemplar to extend: canvasSize is a CanvasSize enum (.square(n) / .size(w, h) plus named presets like .uhd4K / .vertical1080, with .portrait / .landscape to flip orientation, in CanvasSize.swift): it reads as English, is discoverable by dot-completion, carries integer pixels as it should, and beats a bare createCanvas(3840, 2160) on both clarity and correctness. More of that. Candidates, in rough order:

  • What the second API meaning pass found and left (read 2026-09-19, per satellite), after the two passes that acted on it. The renames it made are in the changelog; the rule it settled, one shape per kind of failure, is in CLAUDE.md, and the failures it found are one shape each now. Three rulings came out of the work and are worth keeping: a start a sketch calls itself throws for what it can see, as Camera.start() and AudioInput.start() do, while a start the first note makes for the sketch (Synth, and Tone.play() / AudioPlayer.play() beside it) writes unavailableReason, since the note has nobody to throw to; a tracker's detect throws VisionError.unavailable with the same sentence its unavailableReason holds, because a call in hand can throw where a frame drawn without one can only read, and that is two moments rather than two shapes; and a server that fails to bind keeps the property and says the sentence once on stderr too, the way the vision status does, since the terminal is where the person who typed the port is looking. Two words for one answer: unavailableReason (the Bluetooth, haptics, controller, vision, camera, audio, Syphon, Link and server types) is a present state and clears when the thing works, where lastError (MQTT, the laser, the serial port) is the last thing that went wrong and is cleared by the next success; they are two answers and stay two words. Left in place, with the reason: Collider3D.capsule(height:radius:) takes its two numbers in the opposite order from drawCapsule(radius:height:), and so do cylinder, cone, taperedCapsule and taperedCylinder, which makes the standing colliders one height-first family; matching the draw call would mean flipping five cases and thirty-three positional pattern matches, several of which bind two Doubles that would swap in silence, for one label order, and the family's own consistency is worth more than agreement with the draw call. PhoneDevice.isRunning and Record3DDevice.isRunning report the socket rather than the retry loop, which is a behavior question before it is a naming one; PhoneTouches.isReporting only ever rises; Hit3D.body is typed any Colliding3D where Contact3D calls the same value a thing; SoftBody3D.density moves nothing but buoyancy while Body3D.density sets mass; and Character3D carries three velocities of which two are intents.
  • One spelling, two noises. generate(.noise(scale: 3)) draws the visual chain's noise, which is signed, moves with time, and reads as black wherever it is below zero. Generator.noise and Visual.noise both answer the bare spelling, and the one with the shorter parameter list wins; name sharpness: or warp: and the same call draws the pattern generator's still cloud. The lineIntegralConvolution example in the reference and Effects/FlowStreaks reach the first while their prose describes a noise layer in general. What it wants is one name each: the Visual form of generate under a label, or one of the two noises renamed, read against every example that uses the bare spelling.
  • Keep the presets pattern growing. The orientation-flip trick (.portrait / .landscape as computed properties on a value type) generalizes: look for other places a bare tuple or magic number could become a named, dot-completable value with helpers.
  • What the long-run pass left (read 2026-09-26, beside what it fixed). A frame's image batch whose texture never builds is left out of FrameProfile's counts by design, and no test draws one. The widget run answers a renderer that will not start with an empty run: widgetFrames is what the system surface asks, and an empty timeline is the one answer it can show, so the failure is silent there (the --export-widget path throws on an empty run); a reading the widget's own host could show is not built.
  • What the test audit left (read 2026-09-26, reread 2026-10-06). Three things stay open. About sixty files read a frame inside a helper of their own that reads and then computes (a luminance sum, a histogram, a peak); each could call the shared pixels(of:) for its first half (Tests/README.md § What the suites share), one file at a time as it is touched, and none is worth a sweep. Three skips are judgment-shaped, named in their comments: the two listening tests that read what the classifier made of a synthesized tone, and the one where an empty transcript is a recognizer with no on-device model; a probe for those would be the test itself, so they keep their early return. The web families' sanity tests (a page against the wrong frame must read as different) keep a browser launch each, six in all, since each proves its own family's gate can fail; they could join their family's batched launch only by giving up that independence. One item the audit named is not ahead: the GPU simulation probes stay at the default canvas, because the attractor flow, fluid, soft body, drift, particle life, and spatial-hash suites take 6.2 s together at 1080 square (measured 2026-10-06), so a smaller canvas has nothing to cut.
  • What planting the wildfire left (read 2026-09-29, beside the forest fire's inject). Two rims make a mark: the snapped injects ignore coverage under three quarters, and two one-texel SDF rects beside one gap composite to exactly that, so a dense grid stamped a rect a cell fills its gaps. A stamp drawn into a state field without the analytic halo would let a sketch plant cell by cell; today the answer is an outline or a polygon, whose coverage is geometric.
  • What the same-seed pass left (read 2026-09-26, beside what it fixed). A detector that is not exact: Vision's trajectory request fits its arcs a few millionths differently from run to run, on identical frames with identical timestamps (measured on a fixed synthetic throw, and in TrajectoryTracking, where two of five exports at frame 900 detected a different set of arcs). The export clock makes every input repeat, so the rest is inside the request; a trajectory detector of Ollin's own would be exact, and waits for a sketch that needs one. A detector answering an input during a replay: an export analyzes every frame its sources offer on its own clock, but a detector a sketch calls from an input hook (a PointSegmenter pick on a click, a Task awaiting detect(in:) on a finished stroke) answers on a background task, so a replayed take that clicks has the answer land on whichever frame the machine reached. Under an export such a call could wait for its answer on the thread driving it, as the trackers do. No example records a take like that, so the change waits for the first one that does. A tracker made in a property initializer, before the export begins, can also read a frame the still feed's thread published during a slow setup(); it shows only for a tracker whose answers carry from frame to frame, and every example makes its trackers lazily or in setup(), where they never see one.
  • More idiom candidates. Trailing-closure scoping beyond withState { } (already the model, as is the drawShape { p in … } path builder); @dynamicMemberLookup only where it genuinely clarifies. The richest seam so far has been conforming Ollin's types to the protocols the standard library already understands, since that hands a sketch the whole library rather than one new call: a type that is a sequence of things says so, and a type that generates randomness is reachable wherever using: is asked for. Look for the rest of that shape (an ordered set of values that still hides behind a stored array, a value with a natural stride or ordering) before inventing spellings. Two literal conformances were weighed and left out on the bar below: ExpressibleByArrayLiteral on Palette loses the type name that Palette(.red, .white) already carries, and ExpressibleByIntegerLiteral on Color would let any stray integer become a color, which is shorter and less clear. Four collection candidates went the same way, and the reasons generalize to the next one: Path keeps pen commands, not points, so the element a collection would hand back has to be sampled and a subscript would re-sample the whole curve to answer for one point; Rhythm would arrive with count saying exactly what its own length says, over a run of Bools nobody walks, while onsets is the read people actually want; Ramp has a reversed property returning another ramp, which a reversed() method returning a list of stops would sit one pair of parentheses away from, meaning something else; and a document carrying several parallel lists (Automation, MIDIFile, Timeline) has no single list that is "the" content, so picking one to be the elements is a coin toss the reader has to remember. Two shapes to watch for on the way in: a conformance that quietly redefines an existing call (a geometric contains becoming a membership test), and Sequence shadowing the global two-argument min/max inside the type's own extensions, which is a compile error at every bare call site. The bar: an idiom earns its place when it makes the call clearer, not just shorter, and never at the cost of the bare-call feel or the typed-core split.

Project-generator kinds that are gated

The platform kinds the generator names but cannot emit (an iOS app, a Vision app, a screen saver, an AR effect) are each gated on their own platform leg rather than on the generator: opening one is a new emitter plus a changed availability, and the reasons live with those items.

↑↓ move ↩ open