Ollin

Changelog

On this page

Notable changes to Ollin, newest first. The format follows Keep a Changelog. Version numbers follow semantic versioning at major zero: a breaking change or a new feature bumps the minor, and a fix bumps the patch. Each release names its breaking renames here, so pin .upToNextMinor and read the entry before you move up. An entry is a title and a line or two: what changed and the call to type. The page it links has the rest.

[Unreleased]

Added

  • A shader's sizes hold on a smaller layer. info.pixel is one canvas pixel in uv: uv / info.pixel measures in canvas pixels and uv + float2(12.0, 0.0) * info.pixel steps by them, on a layer kept at any scale. info.resolution is unchanged, so no shader moves. An exported page reads the same value. Sizes in canvas pixels
  • A shader can hand back light past white. linearToExtendedSrgb is the sRGB encode with nothing cut off, the inverse of srgbToLinear. Return float4(linearToExtendedSrgb(light), 1.0) and light brighter than white is kept, where linearToSrgb stops at white. Light past white
  • A feedback layer as a combine's second input. scene.combined(with: trails, .mask()) takes a Feedback, an Accumulator, or a SimField as it is, where it took only a plain layer. combined(with:_:)
  • A sketch on the phone reads the phone's own sensors. Built with ollin phone, PhoneDevice() is the phone the sketch runs on, with no Mac and no cable. readsOwnSensors says so, and use(_:) starts the camera. It has not yet run on a real phone. The sketch on the phone itself
  • ollin phone --simulator. Runs the sketch in the iOS simulator with no phone. It draws 2D, text, images, and a recording's picture, and no 3D meshes. --no-open prints the parameters' address without opening it. In the simulator
  • Depth in meters from one camera. MetricDepthTracker(camera, modelAt:) answers meters(at:in:) and fills an RGBDFrame from a webcam or a clip, over a metric depth model you download yourself. It was written for Apple's Depth Pro 2, which is licensed for research use only. MetricDepthTracker
  • Models to bring yourself. The reference lists eight perception models worth knowing that nothing in Ollin fetches, each with its license and what running it would take. Models to bring yourself
  • Dashes on a line in space. strokeDash now cuts a line drawn with 3D points, each dash at the depth of its own stretch of the line. strokeDash([0.2, 0.1], in: .world) reads the lengths along the line in space, so the dashes hold their places while the camera moves. A dash, a taper, and a brush
  • A taper and a brush on a line in space. strokeProfile and strokeBrush shape a line drawn with 3D points. A profile reads its place along the line in space, and each stamp of a brush stands at its own depth, the nearer over the farther. A dash, a taper, and a brush
  • Paint on a face. painted(with: paint.image) { drawMesh(face.mesh()) } lays a layer on a tracked face by the mesh's own texture coordinates, so a drawing follows the skin through every turn and expression. withFace(face) { } draws in the head's own meters. Drawing on a face in its picture
  • A head that hides what goes behind it. occluding { drawMesh(face.occluder()) } draws the face with a rough rest of the head behind it as depth alone, so the far arm of a pair of glasses disappears behind a turned head. Drawing on a face in its picture
  • A blink as an event. device.expressions.events() hands over a blink, a smile, or an open mouth once, on the reading it begins, with the face that did it. isShowing(_:) and timeSince(_:) read the rest, and PhoneExpression names your own. Expressions as events
  • A spot of skin, kept. face.textureCoordinate(along: ray) returns the texture coordinate under a click, and face.surface(at:) stands a small surface on that spot on every later frame, for a thing that rides the skin. Any mesh answers both. A place on the skin
  • Paint by a mesh's own coordinates. painted(with: image) { } lays an image on any mesh by its texture coordinates, unlit, with nothing drawn where the image is clear. Paint by a mesh's own coordinates
  • A Face recording says it is a mirror. view.isMirrored and recording.isMirrored are true for the front camera's face session, whose picture and measurements arrive mirrored together. A face's picture is a mirror
  • A wall from depth, and the surface under a click. device.surface(under: mouse, covering: canvas) returns the surface the phone found under a point, or fits one from the frame's depth, so a World-mode recording can be drawn on. surface(at:) asks with a point of the room. The surface under a click
  • A flat surface from any depth frame. frame.surface(atColumn:row:) grows a plane from one sample of an RGBDFrame and returns a DepthSurface: the plane, its outline, and how well it fits. A flat surface from depth
  • A recording's own sound. A recording made with the microphone is now heard with the sketch, in step with the picture, and --export-video carries it beside the sketch's instruments. Set recording.volume, or recording.isMuted = true for the silence it had before. Its sound
  • A recording names the frames it lost. recording.droppedFrames lists each dropped frame with its time and why, beside droppedFrameCount. A recording
  • A path cut as finely as you say. path.contour(tolerance:) and path.shape(tolerance:) flatten a path's curves to within a distance you name, for a shape made once and drawn enlarged: path.shape(tolerance: 0.01) for one drawn at ten times its size. Path
  • Lygia Pape, a new artist in the Recreations. Tecelar is a black woodblock with thirty-one white lines cut into it, eighteen of them turning a right angle, after her print of 1957. Tteia is thirteen columns of gold thread in a dark room, lit as a viewer walks round them, after Ttéia 1, C. Both loop. Lygia Pape
  • A second visit to Waldemar Cordeiro. Two homages from his Concrete painting join the two computer pieces. EspiralDeArquimedes rules the circles that find a spiral of Archimedes, then sends a yellow disk along it. IdeiaVisivel draws twenty-one lines, each stopped by one drawn before it. Both loop. Waldemar Cordeiro
  • A second visit to Saloua Raouda Choucair. Two more homages join Poem and Duals. GreenModule is a painting of colored bars that lock together with half circles, each sliding along its side. TrajectoryOfArches laces straight thread between a mast and slanted bars until arches appear. Both loop. Saloua Raouda Choucair
  • A second visit to Sol LeWitt. Two more homages join FiftyPoints and ArcsCirclesGrids. LinesToPointsOnAGrid draws the seven walls of Wall Drawing 273, red, blue, and yellow lines to points on a pencil grid. LocationOfATrapezoid follows the one long sentence of Wall Drawing 237 and writes it on the wall beside the figure. Both loop. Sol LeWitt
  • A second visit to Vera Molnár. Two more homages join Interruptions and DesOrdres. LettresDeMaMere writes her wordless letters, each line calm at its start and restless at its end. HommageADurer joins the sixteen numbers of Dürer's magic square with one line, in his order and in chance orders. Both loop. Vera Molnár
  • A second visit to Gunther Gerzso. Two more homages join MansionDelAgua and Simbiosis. LaCiudadPerdida is a city of small lit blocks that sinks into its ocher ground and is found again. RojoAzulAmarillo is a gold board ruled in black by a drafting machine, line by line, with three flat colors. Both loop. Gunther Gerzso
  • A second visit to Bridget Riley. Current is redrawn after the painting: one curve repeated across the board, measured from pictures of it. Two homages join it. MovementInSquares is a checkerboard whose columns narrow to a fold. Cataract3 is wavy bands of paired colors that pass from gray into red and turquoise. All three loop. Bridget Riley
  • A second visit to Mac Entyre and Vidal. Two more homages join Circunferencias and Focos. Trama weaves one family of circles through two rectangles of ruled lines, and its moiré flows. CajaGenerativa is a box of violet acrylic and bent aluminum that mirrors a room as the viewer walks past. Both loop. Eduardo Mac Entyre and Miguel Ángel Vidal
  • A second visit to Kazuya Sakai. Two more homages join Ondulaciones and RightOff. PinturaNo9 is his straight-edged canvas of 1969, painted again each lap in coats, with tape over the black and white. Integrales is a canvas on its corner from his Texas years, its rippling ribbons cut straight and slid apart. Both loop. Kazuya Sakai
  • A second visit to Zdeněk Sýkora. Two more homages join Structure and Lines. GrayStructure is his first Structure, placed by hand under one rule about neighbors and painted a tone at a time. Macrostructure cuts a slanted piece from a Structure and enlarges it until the borders between black and white stay as lines. Both loop. Zdeněk Sýkora
  • A second visit to Mathias Goeritz. Two more homages, both after work he made for El Eco in 1953. LaSerpiente is one line of black steel broken at sharp angles, walked through. PoemaPlastico writes a poem nobody can read, in iron signs on a yellow wall, with the sun going over. Both loop. Mathias Goeritz
  • A sketch on the phone keeps what it shows. A control at the foot of the screen saves a picture, or a video with the sketch's sound, to Photos. showsCaptureControls turns it off. A capture Photos refuses is kept in the app's own files, and the control says so. On a phone or a tablet
  • saveFrame() keeps a frame as a picture. It writes the next frame to ~/Pictures/Ollin/ on a Mac and to Photos on a phone. saveFrame(to: "frame.jpg") picks the format by the extension. One frame as a picture
  • Record from the viewfinder. In a camera mode, Ollin Capture shows Record over the sketch's picture, so a piece drawn live over the camera is recorded without putting the picture away. The phone as a viewfinder

Changed

  • A whole-frame filter is as wide in a window as in its export. postProcess(.gaussianBlur(radius: 12)) and every other sized filter over the whole frame now measure in canvas pixels in a live window. Before, a window larger than the canvas showed a blur or a bloom narrower than the exported frame had. Exports are unchanged. postProcess

  • A canvas of a set size keeps its shape on a phone. It is fitted whole and centered on black. Before, it was stretched to the screen. A .resizable canvas still fills the screen. The canvas on the screen

  • ollin phone takes import OllinPhone. It was refused as Mac-only. The app now carries the system's question for the camera, the microphone, or Bluetooth when the sketch imports a library that opens one, and a recording beside the sketch goes in as its folder. ollin new --kind ios-app does the same. What comes along

  • A pipeline that cannot be built says so. A kind of drawing the GPU could not build was left out with no word. Its first failure is now printed to standard error with Metal's reason. In the simulator

  • A built-in shape's outline lays exact ink. The stroke on a circle, a box, or a star covers each pixel by the share the outline takes of it, as a plain line does. Thin outlines read about 5% lighter, evenly at every angle, and a stroked circle a pixel across keeps its weight as it moves. Basic shapes

  • Curves are cut by how much they bend. A curve from drawShape { }, drawCurve, drawBezier, a Path, an arc, or an imported SVG keeps its facets under a tenth of a pixel, and one drawn under scale is cut for the pixels it lands on. A Path's points can be more than before, never fewer. Path

  • Plain shapes draw faster. A run of shapes is drawn by a shader built for what it holds. Measured against 0.19.0: a field of filled dots takes a third less GPU time and outlined boxes an eighth less. Rings a few pixels across cost an eighth more, the price of the exact outline.

  • A paper canvas's SVG is sized in points. A sketch on .a4 writes width="595pt", so the file opens as an A4 sheet, the size its PDF has. A canvas given in pixels is unchanged. The paper presets are now pages, so CanvasSize.a4 == .size(595, 842) is no longer true. Vector: PDF

  • drawPolygon fills a concave outline. An outline that turns back on itself or crosses itself is triangulated, under the nonzero rule, where it used to fill wrong as a fan. A convex polygon draws as before. drawPolygon

  • Recordings are format 2, and their depth is lighter. Ollin Capture stores a depth map as 16-bit millimeters, within half a millimeter of what the phone measured, at a fraction of the weight. Older recordings still play. A new recording needs this Ollin on the Mac, so update both together. What is in the folder

  • PhoneWallTiles and PhonePoster let you choose the surface. Click a wall to play on it, in a Room or a World recording. The choice is a parameter (chosen, and the poster's four corners), so it can be saved or passed with --param.

  • The Guide's chapter on the iPhone is two chapters. The iPhone as a sensor keeps the body, the hands, the gaze, what the picture shows, and the phone in your hand. The new Chapter 40, Augmented reality, plays a recording and draws in the room it shows.

  • The Guide's Chapter 36 is two chapters. Seeing keeps the camera, motion, labels, and the screen. The new Chapter 37, Reading people and things, reads bodies, hands, print, and things followed across frames. With both splits, Chapters 37 and 38 are now 38 and 39, and 39 to 47 are 41 to 49.

  • stopRecording and SessionRecorder.stop hand back where the take went. The closure takes a SessionRecorder.Destination (.photos or .file(path)) where it took a URL, and it runs with nil when nothing was recording. Read the path with if case .file(let path)? = kept. From a sketch

Fixed

  • A sketch's camera is never the Ollin Camera. Where the Ollin Camera was the system's default, Camera() opened it and every camera sketch drew its test card. No Camera.Device opens it now: .default takes the built-in camera, and .continuity finds an iPhone listed as an external camera. Camera
  • DepthOcclusion draws with no camera. With no camera, or under --photo, it showed only "Waiting for camera…". A bundled photograph now stands in, and the discs travel from the lens to the wall and back by themselves. DepthOcclusion
  • The framework builds for the iOS simulator again. An import outside its file's own platform guard had broken the build, and the first frame stopped on a kind of texture a simulated GPU lacks. In the simulator
  • A gradient along a 3D line no longer starts over at the camera. An .alongPath gradient on a line the camera's near plane cuts now reads its place on the whole line. It used to stretch itself over the part in view.
  • A recording starts whole. Ollin Capture dropped frames in the first half second of every recording, while its video opened. A recording now begins on the first frame the video can take and holds every frame from there. Making one
  • A recording's first frames are lit, and its room is there. The room's light and the surfaces found before Record was pressed are written with the first frame. They used to arrive 4 to 11 frames in.
  • A camera that does not start says why. Ollin Capture shows the reason in a sentence, and a recording that gets no picture ends after five seconds and leaves no empty folder.
  • A vector file shows what the canvas shows. In an SVG or a PDF, an open curve is no longer filled, and a layer never drawn back, a shape a later background wiped, and a line of no length stay out of the file. What SVG export records
  • Layers, combine blocks, and hollow reach the vector files. A layer is written where it is drawn back, placed and cut as its picture was. A combine block or a drawSDF field is one traced path, and a hollow shape is its band. What SVG export records
  • Blend modes in SVG and PDF. blendMode is written as mix-blend-mode in an SVG and as the PDF's own blend mode. A mode the format lacks is written plain and named, in the file or the terminal. What SVG export records
  • A vector file's corners and edges are the canvas's. A built-in shape's outline keeps its round outer corners, a sharp corner reaches as far (a miter limit of 8), a stepped Ramp keeps its hard edge, and a hatch covers the middle of a polygon that crosses itself. What SVG export records
  • An SVG keeps small numbers. Numbers carry six significant digits, so a sketch drawn in a unit square under scale lands where the canvas put it. Under a scale of 0.0123 it was 22 pixels off. What SVG export records
  • A place on a wall takes three numbers. The reference placed a slab on a wall with translate(0.5, 0.2), which is the 2D call and leaves the slab at the wall's middle. Its listings now read translate(0.5, 0.2, 0). Drawing on a real surface
  • A take of a canvas that fills the window keeps its frames. A .resizable sketch's recording ended on its first frame with nothing in it. The movie now takes the size of its first frame. Recording
  • Recording never makes the window wait. A take's movie now opens off the main thread, so a run's first take no longer freezes after its first frame. A writer that falls behind keeps at most 128 MB of frames waiting and drops the rest, and the stop line counts every frame a take went without. Recording

[0.19.0] - 2026-11-29

This release takes a sketch into a real room. It plays a recording of the phone's camera, draws on a wall the phone saw, and turns the phone into a viewfinder. Filters now measure in canvas pixels and read grays as written, layers draw in the order they read each other, and found things hold steady. Several looks moved and a few calls changed, so read Changed before you update.

Added

The phone and real surfaces

  • A recording of the phone's stream. Press Record in the capture app, with no cable, and play the folder back with PhoneDevice(playing: PhoneRecording(path:)). It plays on the sketch's clock, so an export shows the same frames every time. Changing mode during a recording asks first. Rebuild the capture app to get the button. Phone
  • Drawing on a real surface. withPlane(wall) draws in a wall's own meters. painted(with: view) makes a mesh carry the camera picture's pixels, so a piece of the wall can lift off. occluding { } lets a real surface hide a drawn thing. Plane3 is the surface as a value, and ray.hit(plane) says where a ray meets it. Surfaces
  • A point pinned from a click, and a layer on four of them. unproject(_:onto:) turns a click into a point that stays on a wall. drawImage(_:topLeft:topRight:bottomRight:bottomLeft:) lays an image or a layer on four points of space. The PhoneWallTiles and PhonePoster examples use both. Surfaces
  • The phone's camera as a 3D camera. device.latestCamera says where the camera stood and what its lens was, in every ARKit mode. drawPhonePicture(_:) and camera(_:) put a sketch in the room the phone saw. Phone
  • The phone's camera, live behind a sketch. With the phone on the cable, device.latestCamera?.picture is the camera's own picture, sent up as video once a sketch reads it. drawPhonePicture(_:) and camera(_:) then draw in the room live, as they do on a recording. Rebuild the capture app. Phone
  • The phone as a viewfinder. device.use(.room) beside device.show(self) keeps the camera mode running under the sketch's picture, so the phone's screen shows what the Mac drew over its camera. A tap on it is still the pointer. The PhoneViewfinder example stands blocks where you tap. Phone

Vision

  • Found things held steady. @Steadied var objects: [Detection] = [] takes what a detector found each frame and hands the same things back without the shake: matched to the frame before, smoothed, shown once found for a moment, and kept through a gap. $objects.things numbers each one, and a type of your own joins through Steadiable. Steadied
  • A camera stand-in of any kind. Camera.or { film } gives a sketch the camera, or a feed you build when there is none: a film, a screen, a feed of your own. On a first run and under --photo it behaves as Camera.orStill does. Vision
  • isLive on every feed. feed.isLive is true for a running camera, a captured screen, and a phone on the cable, and false for a film, a still, and a recording. A feed from Camera.or or Camera.orStill turns true when the camera takes over. Vision

Geometry, simulation, and 3D

  • A chain that learns a picture. MarkovGrid learns small pictures, written as rows of any value, and writes new grids with the same local habits: nextRows(_:columns:) for a whole field, nextRow(columns:) for a strip without end. order sets how many cells around a place it reads. The Patterns/MarkovGrid example writes a town, a maze, and a wall. MarkovGrid
  • Points spread evenly over a sphere. spherePoints(count:) returns exactly that many points on a sphere, each about the same distance from its neighbors, with no crowding at the poles. hemispherePoints(count:) is the upper half, a dome. Both take a radius, and nothing in them is random. Points on a surface
  • Noise with nothing cut off. noise(x, y, clamped: false) reads the field before noise cuts it off at 0 and 1, so a curve drawn from it never runs flat. It runs a little past both ends, as far as -0.5 and 1.5. signedNoise and the looping forms take the label too. Noise
  • Removing many particles at once. world.remove(particles) takes a list out of a physics world in one pass, with the springs attached, where a hundred single removals each read the whole world. world.remove(springs) does the same for a list of springs. Physics
  • One mesh field in two views. drawMeshField(field) can be called more than once a frame. On the canvas and again in a layer through another camera, each view is culled for itself. Under another transform, the copies are placed a second time. The second draw used to be skipped with a note. Instancing

Running a sketch, and the website

  • The files a launch names. launchFiles holds the files typed on the command line beside the flags, as paths: swift run MySketch photo.jpg --export out.png gives ["photo.jpg"]. A flag's own word is never read as a file, and under ollin run the sketch's source is left out. Input
  • A runner says when it records a take. runner.isRecordingTake is the twin of isReplaying, for a host that shows it. It turns false by itself when the take ends: at finishTake(), when a replay starts, and when the sketch is swapped. Record and replay
  • Why a Bluetooth link dropped. device.lastError says why the link to a device last dropped or would not come up, in the radio's own words when it gave any. It is nil again once the device is back, and after a disconnect(). device.name is nil while nothing is connected. Bluetooth
  • A page for a wrong address. A wrong address on the website gets a page in the site's own look, with the search and the three sections, where it got the host's. ollin site writes it as 404.html when the site knows its address. The reference offline

Examples

  • A second visit to John Whitney. Two more homages join Permutations. Arabesque is a ring of 360 points all moving right at whole-number rates, stopping at each fifth of its cycle to turn over. Matrix is twenty-four squares at whole-number rates on a path that is never drawn. Both loop exactly. John Whitney
  • A second visit to Frieder Nake. Two more homages join HommageAPaulKlee. WalkThroughRaster lays one chain of signs into a raster along four walks, after his program of 1966. RandomPolygon is one line that turns only in a few permitted directions, after the Zufälliger Polygonzug drawings of 1965. Both loop and export as strokes for a pen. Frieder Nake
  • A second visit to Jared Tarbell. Two more homages join Substrate. HappyPlace is a ring of nodes that step toward their friends and away from everyone else, the friendships laid as sand. SandTraveler is a chase, with sand laid between each chaser and the one it follows, in his three ways. Both loop. Jared Tarbell
  • A second visit to Ryszard Winiarski. Two more homages join Obszar and LosowanieDwiemaKostkami. StoZdarzen throws a hundred turned squares, one to a cell, and grows them through the sides of his series. GraNr1 plays his game of chance for two: two dice name a field, and red and black counters fill the board. Both loop. Ryszard Winiarski
  • A second visit to Anwar Jalal Shemza. Two more homages join Meem and Roots. ChessmenOne stacks rectangles and half circles into four rows of chessmen, each row a tier taller than the last. LoveLetterOne writes a net from the letters B and D, with windows left in it for red words. Both loop. Anwar Jalal Shemza
  • A second visit to Carlos Cruz-Diez. Two more homages join Physichromie and Chromosaturation. InductionChromatique is a panel of blue, black, and white lines built to bring out a yellow no pixel holds. Chromointerference slides a sheet of black lines over fine colored lines, and bands of color run through it. Both loop. Carlos Cruz-Diez
  • A second visit to Jesús Rafael Soto. Two more homages join Vibracion and Penetrable. CuadradosOlivaYNegro stands sixteen squares off a ground of fine lines, where a black edge over a black line disappears as you move. Extension is a floor field of 19,200 painted rods whose pale aisles follow you. Both loop. Jesús Rafael Soto
  • A third visit to Manuel Felguérez. Two more homages join MaquinaEstetica, EspacioMultiple, and RelieveLacado. ImagenRitmicaPorRotacion is the motor piece of 1971: a folded mirror turning in a painted well, each reflection worked out as geometry. InteraccionLineal is the red iron piece of 1976, rebuilt from its one catalog photograph and walked past. Both loop. Manuel Felguérez
  • A second visit to Alma Thomas. Two homages after her late paintings join Rings and Columns. RedAzaleas is three canvases of red marks that come apart from left to right and dance in place on the beat, never touching. GrassyMelodicChant is a green pavement cut into stones around eight whorls and laid like a round. Both loop. Alma Thomas
  • A second visit to Eduardo Terrazas. Two more homages join Cosmos and Posibilidades, after two more subseries of his one structure. Diagonales weaves bands of yarn along the two diagonals, with four ways for a crossing. CodigoDeBarras deals upright bars a whole number of units long. Both loop through several tablas. Eduardo Terrazas
  • A second visit to Nasreen Mohamedi. Two more homages join Registers and Diagonals. Strands is a ruled sheet of the 1970s whose bent ink strands keep every corner on a crossing of line and guide. Reflection is the floating triangle of the 1980s and its pale twin, ruled line by line. Both loop. Nasreen Mohamedi
  • Gunther Gerzso, a new artist in the Recreations. Two homages after the Mexican painter of layered planes. MansionDelAgua lays olive sheets one over another, each casting its shadow, and lets the light drift. Simbiosis starts from his ruled drawing and paints a hot wall, bricks, and lines with halos in thin coats. Both loop. Gunther Gerzso
  • Mathias Goeritz, a new artist in the Recreations. TorresDeSatelite stands the five painted wedges of the Torres de Satélite on their traffic island and drives a lap round them, so they read as blades, walls, and towers. Mensaje is a gilded sheet punched in rows, lit by candles that flicker and one you carry. Both loop. Mathias Goeritz

Changed

Layers and filters

  • A layer can draw a layer opened after it. Layers are filled in the order they read each other, so a block can draw another layer's image, a feedback layer's, or an accumulator's mean, and show this frame's picture wherever that block sits. A sketch that leaned on the old one-frame lag can read a feedback layer's previous. Layers
  • background inside a layer clears the whole layer. In a layer's second block it also takes what the first block drew, and it leaves a second layer drawn inside the block alone. Its color holds through a later block. To keep earlier marks, call it only in the layer's first block. Layers
  • A layer is empty on a frame that draws nothing into it. A layer kept from setup() showed an older picture, or another layer's, on a frame that left it alone, and kept its last background color. To keep a picture across frames, use makeFeedback(). Layers
  • compose under a transform draws where the calls would. A compose block under translate, rotate, scale, or symmetry applied it twice: to each layer's drawing and to the finished layer. It now applies once. compose
  • A filter's sizes are canvas pixels at any layer scale. A blur, an outline, a shadow's offset, and every other size mean canvas pixels on a layer made with makeRenderTarget(scale:) or .scaled(_:). At 0.5 a filter spreads half as far as it did: divide a size by the scale to keep an old look. Effects
  • A one-pixel filter reaches a canvas pixel. On a scaled layer .edges, .sharpen, .emboss, .median, .toon, .normalMap, and .schlieren step by a canvas pixel, so a slope is as steep and an edge carries the same ink at any scale. .antialias, .grain, and .jpeg still work on the layer's own pixels. Effects
  • A measured field and the patterns read canvas pixels too. On a scaled layer .distanceField reports its distances, and takes maxDistance, in canvas pixels. So do the sizes of .defocus, .light, the .anaglyph combine, .rust, .verdigris, .terrazzo, .scratches, and the pulsing border's margins. Effects
  • Tone filters take grays as written. threshold, levels, solarize, and lumaKey read a level as the gray a sketch writes: threshold(0.5) cuts at Color(white: 0.5), where it cut at 0.735. To keep an old cut, pass the level through Color.linearToSrgb(_:). A bare lumaKey() now drops only what is nearly black. Effects
  • A negative, a posterize, and a contrast work on written grays. invert turns Color(white: 0.25) into Color(white: 0.75), posterize spaces its steps evenly as seen, and colorGrade(contrast:) spreads grays about Color(white: 0.5). For the old negative or contrast, use channelMixer, which works on stored light. levels no longer cuts a highlight past white down to white. Effects
  • A map is read as its colors were written. .displace and the .vector field of .lineIntegralConvolution take Color(white: 0.5) as no shift, where it used to move the layer. The map's alpha weights the push, so a map can be marks on a clear layer. A map drawn over Color(white: 0.735) goes back to 0.5. Effects
  • A mask and an angle field read grays as written. A .mask of Color(white: 0.5) keeps half the layer, where it kept 21%, and .angle(turns:) reads Color(white: 0.25) as a quarter of its turns. White, black, and a soft white mark mask as before. To keep an old share, write the gray as Color(white: Color.srgbToLinear(g)). Effects
  • .normalMap writes the usual normal-map color. A flat area is Color(red: 0.5, green: 0.5, blue: 1), a deeper blue than before, and the result feeds .displace and the .vector field as it did. A shader of your own that reads its red and green now reads them through linearToSrgb. Effects
  • motionBlur is one length at any angle. distance is a fraction of the layer's height whichever way the blur runs. Across a layer that is not square it was a fraction of the width: on a 16:9 canvas, multiply a sideways distance by 16/9 to keep its length. Effects
  • colorama colors a gray. It turned the hues a picture already had, so a gray ramp stayed gray. Each pixel now takes the wheel's color for its own brightness and keeps its brightness, so black stays black. A colored picture looks different under it; the old look is a hue turn by brightness in a Shader. Effects
  • kaleidoscope repeats the wedge it is turned to. It read the picture turned half round, so the wedge it repeated came from the left of the middle. It now comes from the right, as angle: 0 says. To keep an old wheel, draw the picture into its layer under rotate(.pi) about the middle. Effects
  • A feedback layer holds its light. makeFeedback() keeps single precision, so a fade at 0.98 is 0.98 to the number of frames, where it ran 3.4% dark after a hundred. Filters over the layer work in single precision too, and cost more. makeFeedback(precision: .float16) is the old cost and the old loss. Effects
  • A kept canvas holds its light. noClear() keeps single precision. A see-through wash fades the canvas at its own rate, and a long exposure of faint marks keeps adding where it used to level off. The kept canvas takes twice the memory; noClear(precision: .float16) is the old cost. Accumulation
  • dither(levels:) uses the shades posterize does. Four levels are Color(white:) 0, 1/3, 2/3, and 1, where they were even steps of light (0, 0.61, 0.84, 1). A tone still keeps its brightness, and two levels are unchanged. Effects
  • wave, perturb, and displace move by the layer's height. On a layer that is not square, the same amount moved the picture farther across than down. An amount is now a fraction of the height along both axes. A square layer is unchanged. Effects
  • A filter's result kept past its frame draws nothing. Kept in a property and drawn on a later frame, a result showed whatever its texture held by then. It now draws nothing, and a note says so once. Ask for the result again each frame. Effects
  • A layer's window shows an empty layer on a frame that leaves the layer alone. It kept its last picture, while the layer's image on the canvas was empty. Draw the layer every frame, or keep the picture in a feedback layer. Windows

3D and the phone

  • A layer's solids receive the frame's shadows. Under castShadows(), a solid drawn into a layer is shadowed as one on the canvas is, through the layer's camera or the canvas's, so a second window shows the first one's shadows. A sketch with solids in a layer under castShadows() now sees their shadows there. A camera for a layer
  • A layer's camera has two eyes in a spatial video. A layer that looks through a camera of its own showed both eyes one picture. Each eye now gets that camera's own view, so a 3D scene inside a layer has depth in --export-spatial. A feedback layer or an accumulator still shows one picture. Spatial
  • cameraRay(through:) returns a Ray3. It returned a tuple, (origin:direction:). .origin and .direction read as before, so only a destructuring let (o, d) = needs rewriting. It also answers under a camera built from a real lens (Camera3D.intrinsic(_:)), where it returned nil. Depth compositing
  • A picture on a sweep, a loft, or a strip reads the right way round. It read as in a mirror. A sweep's or loft's u now runs the other way round, a strip's v counts from its second line, and an end cap is upright. For the old coordinate, read 1 - u or 1 - v. Sweeps
  • A picture on a sphere reads the right way round. An image on Mesh.sphere read backwards from outside. It now reads as the image does, its middle on the front (+z) and its side edges meeting at the back. For the old look, map uvs to Vector2(0.75 - $0.x, $0.y) and texture with wrap: .tile. 3D
  • A sphere's points start at the back. Code that picks a ball's positions by number picks other points. A ball whose segment count is a multiple of four is still the same solid, triangle for triangle. Any other count is that ball turned a quarter turn, and rotateY(-.pi / 2) turns it back. 3D
  • A heavy 3D field draws in several passes. A drawSDF3D field with many nodes, under a shadow, is divided into as many as sixteen lighter draws and shown as one, so no single draw asks the GPU for all of it. 126 capsules under castShadows() draw at 1080 by 1920 in about 5 s on an M2. Combinators
  • A field of many parts reads the near ones. A 3D field of a dozen parts or more steps past the parts far from each point it reads, and its value is exactly what it was. The 126-capsule field above draws in half the time. Nothing changes in a sketch. Combinators
  • show(_:) keeps a mode the sketch asked for. device.show(self) always asked the phone for Sketch mode. It now asks only when no use(_:) was called, so use(_:) beside it chooses the mode under the picture. A sketch that called both and wants Sketch mode drops its use(_:). state.isShowingSketch says whether the phone's screen is the sketch's. Phone

Sound, simulation, and export

  • Colliding disks stay fast when their sizes vary. A step of 9,000 disks with radii from 5 to 80 px took 442 ms and takes 14. At one size it took 37 and takes 8. A pile of one size settles where it did. A pile of mixed sizes settles differently once, then the same on every run. Physics
  • problem is lastError on the feeds. DataFeed.problem, PushFeed.problem, and Weather.problem are now lastError, the word every other type uses for what last went wrong. Rename the reads; what they hold is the same. Live data
  • AudioPlayer.play() carries on after a pause. pause() kept the place and nothing could return to it: play() always started the file over. It now resumes after a pause(), and still starts from the top while playing, after stop(), and once the file has played out. Call stop() first for the old restart. Audio
  • MIDIOutput.open(matching:) throws when nothing matches. A name no destination had opened the first device there was, and with none attached it read as open and dropped every send. It now throws MIDIError.noDestination and opens nothing, so a later open finds the device once it is plugged in. MIDI
  • The arpeggiator's hold keeps the whole chord. With latches on, the chord shrank as each finger came up and the hold kept only the last key. It now keeps every key since all were last up, and playing is that chord while it latches. Composition
  • A recipe names the commit its binary was built from. ollin was wherever the framework's checkout stood when the export ran. It is now the commit the running binary was built from, with ollinCheckout beside it when the checkout has moved on since. An edited page or test no longer marks the framework -dirty. Export

The website and the Guide

  • The website reads as one site across its sections. Every page opens on the same title size, and every trail starts at Ollin. The examples menu follows the index's order, the project pages go by short names, and a white picture has a thin edge. The reference's pages say "Reference" where they said "Documentation". The reference offline
  • The website's side menus follow where you are. The menu opens on the page you are reading, and the list of sections marks the one on screen. On a phone the section's tab opens the menu, and the list folds under the title. A chapter ends on two cards, previous and next. The reference offline
  • The website's front page and foot. The front page fills a wide window, and a phone shows the words before the ring. Every page ends on a foot with the sections, the project pages, and the release. Code blocks have a copy button, a heading links to itself, and an example shares as its own picture. The reference offline
  • The website lists the Recreations by artist. The examples menu has one row for each artist, under the name the artist's page carries, where it listed every sketch as Folder / Sketch. A sketch's page marks its artist in the menu and names the artist in its trail. The 3D menu lists its ten parts. Recreations
  • The website holds a picture's place and loads it as you reach it. Every picture's tag carries its size, so the text under it no longer jumps as it arrives. All but a page's first picture load as you come near. Chapter 19 fetched 3.8 MB on opening and now fetches 1.2 MB. The reference offline
  • The website from a keyboard, and at low contrast. The first Tab reaches a "Skip to content" link, and the focus shows as a ring in the page's ink. The faint gray labels and the comments in code now read at 4.5 to 1 or better, and a link inside gray text is underlined. The reference offline
  • The Guide's Chapter 34 is two chapters. Traced light keeps the mirrors, the bounce, the caustic, and the camera's effects. The new Chapter 35, The lens and the slow render, teaches depth of field and the path-traced export. Chapters 35 to 46 are now 36 to 47.
  • The Recreations are grouped by how the work was made. The index sorts its 35 artists into ten wings, such as Chance, Instructions, and Color, with a line about each artist under their picture. Every artist's page now reads the same way: a life, the work, the sketches that rebuild it, and where to read more. Recreations

Fixed

Layers and filters

  • Accumulator.reset() means the same anywhere in draw(). The frame it is called in starts the fresh mean, whether the block comes after the call or came before it. Called after the block, the mean read a tenth of the pass, then twice it. Accumulator
  • A combine with a layer nothing drew into is no longer empty. The combine reads an empty layer, so .mix(amount: 0) returns the base where it returned nothing. A filter over such a layer runs too. Combine
  • Feedback.previous on a frame with no block is the last block's picture. It was the picture from one block earlier. Feedback
  • Drawing into a filter's result says so. withTarget on a filter's or a combine's result, a generated pattern, or a layer's depth dropped the drawing without a word. It now skips the block and prints a note once, with the way to draw over a result. Layers
  • A long motionBlur is one streak. A thin mark under a long smear came out as sixteen copies with gaps between them. The blur now reads the layer a pixel at a time along its whole length, so a line smears into one even streak however far it runs. Effects
  • dither(levels:) keeps a tone's brightness. A flat gray came back brighter than it went in, and at two levels a mid-gray turned all white. levels now counts the shades each channel keeps, black and white among them. Effects
  • contour leaves a flat area alone. A flat area whose brightness sat on a level, pure white among them, was painted solid black. A line is drawn only where the brightness crosses a level. Effects
  • gridLines draws only its lines. A faint second line showed at some cell edges, and a weight of 0 still drew. A line's ink is now its width: 0 draws nothing, and a line thinner than a pixel is that much fainter. Effects
  • A mirrored tiling starts with the picture. tile(count:mirrored:) flipped its first cell, so tile(count: 1, mirrored: true) was the picture turned half round. The first cell is now the picture as it is, and its neighbors are its reflections. Effects
  • See-through colors in the patterns and the ink filters. checkers, gridLines, bars, noise, cellular, gaborNoise, crosshatch, and lineScreen wrote a see-through color at full strength, which composited as added light. hatching and xdog left a clear background's color in the soft edge of their ink. Each now holds its colors under their alpha. Effects
  • glitch covers what it shifts. Its three channels are read from three places, and a pixel took the alpha of one of them, so a shifted edge held color with no coverage under it. A pixel is now covered wherever any channel is. Effects
  • grain stays noise at any seed. Fed a frame count of 200,000, about an hour of frames, the grain fell to 16 values in a blocky lattice. Every seed now picks a full pattern, and a seed of 0 draws the grain it drew. Effects
  • Three filters at their edges. lightLeak(intensity: 0) is the layer, where it still added its dither. vibrance under -0.5 stops at gray, where pure red at -1 came back cyan. oilPaint keeps a see-through shape's color at its rim, which came back 4% dark. Effects
  • radialBlur is one streak. Sixteen taps, however far the blur reached, left a thin mark as a row of copies. The taps now sit a pixel apart or closer, and amount is held to 1. Effects
  • A masked spectrum returns its picture. .fourier() over a default layer, a mask, then .inverseFourier() brought white back as 0.376 on a 512 square. A spectrum and whatever is made from it are single precision whatever the layer was. The frequency domain
  • droste on a tall layer. The ring was measured in half heights, so on a portrait layer it ran past the sides and smeared the edge columns. It is measured on the shorter side. Effects
  • A measured field has no direction past its reach. Under distanceField(maxDistance:), a pixel up to twice the reach away still pointed at the shape. Distance fields
  • Every simulation field keeps the precision it is asked for. At .float32 a self-warp or a datamosh copied between two formats, and the fluid, the watercolor, and the Turing field's steps stayed in half float. Effects
  • snapshot() reads every field. It returned nil for the fluid, the watercolor, the self-warp, and the datamosh, and after field.sim changed it returned the old sim's state. It reads the numbers behind image. Effects
  • A still restarted with a new seed steps its layers. The first frame of a run started over could be taken for a repeat of the old run's, which left feedback layers, accumulators, and fields unstepped and empty. Effects
  • The Ising field on an odd side. On a wrapping field an odd number of cells across, the first and last columns flipped together and could raise the energy at a temperature of 0. They now take turns. Effects
  • A large seed is still a seed. A seed past about ten million started a field in blocks and one past a hundred million started it flat, so a date or a clock's seconds did not work. Seeds past 131,072 are folded first; smaller ones start as before. Effects
  • Three settings that asked a shader for a number with no answer. lightLeak(anchor:) at the middle, a lens split with falloff: 0, and brushwork(sharpness: 0) each draw what the setting beside them draws. Effects
  • Reads of a layer the frame had not filled. A slit scan's delay map drawn after the scan was read a frame late. A snapshot() of a layer the frame left alone returned an older picture, and is nil. An environment fed such a layer kept reflecting it, and is lit by an empty layer. Effects
  • Liquid metal's wobble on a layer that is not square. The noise that bends the bands was stretched with the layer. It is the same size across as down. Effects
  • On a web page, a layer that draws a feedback layer's last frame shows it. A plain layer that drew previous came out empty on the page while the Mac showed the frame before. A sketch as a web page

3D

  • Glass shows the scene with clean edges. Under sceneThroughGlass(), things seen through solid glass had edges in uneven steps, and a box's side seen nearly edge-on was missing. The ray leaving the body is now tested against every pixel it crosses. A frame filled by solid glass costs about 4 ms more on an M2. The scene through glass
  • Traced shadows on an M1 or M2 are fast again. A point light's or a rect or disk panel's traced shadow drew about thirteen times slower than it should: every such frame also carried the traced reflection code, used or not. A frame with no traced reflections now leaves it out, and draws the same picture. 3D
  • Two surfaces at one distance trace the same way every time. A traced ray that met two such faces took either, so glass cut into touching pieces flickered and an export could differ by a pixel. Of two solids in one place, a mirror shows the one the eye sees. Crowded traced scenes cost a tenth more. 3D
  • The camera rig moves once a frame. A frame that called cameraControl(), cameraShowcase(), or cameraMove() twice, on the canvas and again inside a layer, ran the motion at twice its speed and took a scroll twice. Camera

Vision and the phone

  • A 3D body tracker no longer grows by a gigabyte every minute and a half. The system's 3D pose model leaves a buffer behind on every analysis. BodyTracker3D now finds and frees them as it runs, on macOS. BodyTracker3D.freesLeftoverBuffers = false turns that off. Vision
  • The camera takes over after the first Allow. On a Mac never asked for its camera, a sketch made with Camera.orStill showed its picture and kept it after Allow, until a relaunch. The picture now stands in only while the prompt is up, a refusal says why in the terminal, and an export never asks. Vision
  • A salience query reads the right place. On macOS 27, salience(at:in:) on a SaliencyTracker or a Saliency answered from the wrong part of the heat map, so a marker steered by it sat beside the glow. The query now reads the map the picture is drawn from. Vision
  • The capture app, held sideways. With the phone turned sideways, the Record button and the Wand and Touch pads were off the screen. They now sit on the right, and the modes and status rows scroll on the left. Upright is unchanged. Rebuild the capture app to get it. Phone
  • A camera mode entered from Selfie. Switching from Selfie to another camera mode could leave that mode's camera delivering nothing, and a recording made there ended on an error. Leaving Selfie now waits for the front camera to stop. The Record row also shows its whole sentence. Rebuild the capture app. Phone
  • A phone device nobody started says so. waitingMessage read "Connecting to the phone…" before start() and after stop(). It now reads "Call start() to read the phone." on PhoneDevice and Record3DDevice. Phone

Sound and devices

  • A fade, a bow, and a moved effect reach an export. synth.gain, synth.pressure, and an effect's settings changed while the frames went by played in the file at one value, and a pressure set before the export played at full. Each is now in the file at the frame that set it. Synthesis
  • A microphone or camera stopped during the permission prompt stays off. stop() while the prompt was up was ignored, so answering Allow turned the device on. A second start() under the prompt asked twice, and on AudioInput the second answer raised an exception. A failed AudioInput start also broke the next one. Audio
  • A screen capture stopped while it starts records nothing. stop() during the moment a stream comes up left that stream running behind a capture that read as off. A source changed in the same moment could leave the old stream as the capture's. Screen capture
  • A full synth gives up its oldest timed note. With every voice busy, a new note took the voice of the note that had only just started, since a note given a length was read as already let go. Synthesis
  • A video's rate set during an export no longer plays the clip. Setting player.rate while a clip played under an export started the real player, sound and all. Video
  • A controller with no sticks takes no player number. A paired remote or small pad took player 1, read as not connected, and pushed the real controller to player 2. Controller
  • A speech listener stopped early says nothing afterwards. Detached within its first half second, a listener went on to report that a speech model was installing. Listening

Running, takes, and export

  • A still sketch keeps up with what you save. Under OllinLive, a noLoop() sketch redraws once when an asset it loads changes, and a saved shader or asset shows while the timeline holds the clock. Scrubbing the timeline no longer leaves a still sketch redrawing. Timeline
  • A screen saver's still sketch stays still. The system stops and starts a saver more than once, and the second start set a noLoop() sketch redrawing at full rate for good. Starting now gives back only what stopping took. Rebuild the saver to get it. Screen saver
  • A take of a still sketch replays. --replay on a sketch that calls noLoop() stopped on its first frame until Space was pressed twice. The replay now draws every frame the take holds and stops at its end. Replay
  • A night off and the Mac's sleep hold against everything. A piece shut by its schedule, or held for sleep, could be set drawing again by a redraw(), a loop(), a reload, or the wake arriving first. Each now waits until the reason that holds the loop lets go. Installation
  • --export-plates --profile takes an installed profile's name. A name such as "Generic CMYK Profile" was answered with "unknown profile" and a list holding that very name, since only a path was ever tried. Print color
  • Four examples find their sound or film under a host. Run through ollin run or OllinLive, Audio/Tuner, Audio/FilePlayer, Video/VideoPlayback, and Vision/ContourTrace took the sketch's own .swift file for the sound or film to play, and showed nothing. Each now skips it. Single-file sketches
  • setup() runs once when a rerun meets a fresh run. A changed asset beside a saved edit or a seed restart ran setup() on two frames in a row. A replay's jump back now runs the same first setup() the frame loop does. Live coding
  • A replay's title leaves with the replay. A seed restart or a saved edit during a replay left the window titled replay 40% | paused for the rest of the run. The window gets its own title back. Record and replay
  • A shader whose pipeline will not build is asked for once. A shader that compiled and whose pipeline the GPU refused was sent to the GPU again on every frame. It is now remembered like a failed compile, until the shader is saved again. Shaders
  • A sketch that renders another sketch keeps its export mode. Calling OllinApp.image(of:) from a sketch that was itself being exported ended the outer export's mode, so its sounds and feeds behaved as in a window for the rest of the run. Export
  • A layer window that closes lets its mouse button go. A window closed from the sketch while the button was down over it read mouseIsPressed as true for the rest of the run. Windows

The website

  • The website's search button is called what it shows. On a wide screen the button shows its keys beside the magnifier, and its spoken name was only "Search". The name now holds the keys, so voice control and a screen reader meet the same button. The reference offline
  • The website's menu on a phone takes the focus when you asked for less motion. With Reduce Motion on, opening the menu left the keyboard focus on its button, so a screen reader stayed where it was. The menu now opens at once and takes the focus. The reference offline
  • With scripts off, the website shows no button that does nothing. The search button in the bar, and the one on the page for a wrong address, showed with scripts off and did nothing. Each now stays hidden until its script is there to answer it. The reference offline
  • A short row of pictures shows as cards on the website. A listing with fewer sketches than its grid is wide was laid out there as a plain table. It is a card grid now, like every other listing. The reference offline
  • On the website, what sits under a bullet stays under it. A paragraph or a command indented under a list item was set outside the list, and a numbered list began again at 1 after it. Both now read as they do on GitHub, so the Guide's contents number each part's chapters as written. Reference
  • The website's search finds a name without its accents. bonacic finds Vladimir Bonačić and dora finds Dóra Maurer, each marked where it stands. A sketch filed under an artist is listed under the artist's name. Reference
  • Nothing on the website runs off a phone's screen. A long call in code type now folds between its labels, and an address written out breaks at the end of its line. 67 pages were wider than a phone and dragged sideways. A code listing and a table still scroll inside their own box. The reference offline

[0.18.0] - 2026-11-14

This release adds a pen and lines drawn by hand, soft bodies that touch what is around them, a layer a sketch can read back, and a sketch that floats over the desktop. Small dots and thin lines now lay exactly their own ink, and lit 3D that traces nothing is about ten times faster on an M1 or M2. A few looks and defaults moved, so read Changed before you update.

Added

Drawing

  • A pen. strokeMedium(.ink(feather:pooling:amount:speed:seed:)) draws ink from a nib. It feathers into the paper where the hand slows, pools at each end, skips when the pen hurries, and darkens where strokes cross. A recorded mark keeps each point's pace in StrokeMark.Sample.speed. Marks
  • Lines drawn by hand. handDrawn(wobble:bow:overshoot:seed:) on a Contour, a Shape, or a StrokeMark returns the same line with a hand's wobble, bow, and uneven ends. It is seeded, so a line that moves keeps its character. Marks
  • A layer read back. RenderTarget.snapshot() returns a layer's pixels as an Image, one frame late. Anything that reads a picture can now read what the sketch draws. Effects
  • A slit scan on the GPU. makeLayerHistory(capacity:) keeps a layer's last frames, and Filter.slitScan(_:delay:) builds each pixel from the frame its delay names. Effects
  • A glyph mosaic of a layer. drawGlyphMosaic and glyphMosaic(of:) take a layer's image, so a moving drawing can be set as text. Glyph mosaic
  • An accumulator in single precision. makeAccumulator(precision: .float32) keeps the very faint marks a half-float pass drops, at twice the memory. Accumulation

3D

  • A camera for each layer. A camera set inside a layer's withTarget block belongs to that layer, so one frame can show a 3D world from several places. 3D
  • Finishes keep their look in a path-traced export. --path-traced now draws the stylized finishes as the window does: .toon, .gooch, .iridescent, .glitter, .jade, .velvet, .hologram, and the standard highlights. The clearcoat, the fabric sheen, the brushed streak, and scattering under the surface still trace as their base. Path-traced export
  • Maps show in a traced reflection. With rayTracedReflections() on, a mirror shows a surface's normal, roughness, and occlusion maps, and a fine picture seen small in a mirror no longer shimmers. 3D
  • Light that bounces inside a volume. Medium.bounce, from 0 to 1, lets a thick cloud glow from inside and shine through at its thin edges. Volumes
  • Fog veils volumes. Under fog or aerialPerspective, a volume is fogged like the solids around it. Volumes
  • A flat field stood up. extruded(depth:) turns any 2D SDF composition into an SDF3D slab that joins other 3D fields, casts shadows, and voxelizes. Combinators
  • Gesture marks in space. GestureMark.tube(sides:wobble:wavelength:) turns a drawn gesture into a mesh, and GestureMark.solids(spacing:seed:) strings instances along it. Gesture marks
  • A layer as an environment. A RenderTarget is a VideoFeed, so environment(.feed(layer)) lights a scene with the sketch's own drawing. 3D
  • A sample 3D model. import OllinSampleModels, and SampleModel.duck.load() gives a sketch a model to try materials, lights, and camera moves on. Sample models

Geometry and simulation

  • Finding boxes. BoundsIndex answers which of thousands of rectangles hold a point, overlap a rectangle, or overlap each other. Rectangle gains intersects(_:), intersection(_:), and union(_:), and Box3 gains intersects(_:). Bounds index
  • Neighbors in space. SpatialIndex3D is SpatialIndex for Vector3: the nearest point, the k nearest, everything within a radius, and everything inside a Box3. Spatial index
  • Matching two sets at the least total cost. Matching.optimal(_:_:cost:) pairs two sets so the costs add up to the least possible. A cloud of dots gathers into letters along paths that never cross. Matching.greedy is the quick comparison. Matching
  • Soft bodies that rub, meet rigid bodies, and fold. A 2D SoftBody has friction, and it pushes and is pushed by a rigid Body. With collidesWithItself: true, a long outline folds onto itself and no longer passes through. Physics

Sound

  • An echo long enough to be a loop. Delay.time runs to sixty seconds (Delay.maxTime). Each repeat lands on its exact sample, and turning time while the echo sounds no longer clicks. Synthesis
  • The sketch's sound as a file of its own. --export-sequence writes soundtrack.wav beside its frames, and --export-audio FILE (OllinApp.exportAudio) writes the sound alone. A --skip stretch is now dropped from the sound too. Synthesis

Windows

  • A sketch over the desktop. --overlay, or OllinApp.runAsOverlay { MySketch() }, floats a sketch above every window. Where the canvas is clear (background(.clear)) the desktop shows through, and a click there goes to whatever is underneath. Overlay
  • A second window for a layer. makeWindow(showing:title:) gives a layer a window of its own: the piece on the projector and the controls on the laptop. The returned SketchWindow reports its own pointer. Windows

Parameters and the live window

  • Undo in the inspector. ⌘Z puts back a parameter you turned by hand and ⇧⌘Z brings it forward, in every host. One gesture is one step, and a reset is one step. Parameters
  • Long menus fold into submenus. A ParamChoices type that declares paramChoiceGroups gets a submenu for each group. Easing declares its families, so a curve's menu is twelve rows instead of thirty-two. Parameters
  • A description on a parameter. help: on any @Param is a sentence about it. The inspector shows it on hover and --list-params prints it. Parameters
  • The rest of a package in the live window. A sketch that imports a library target of its own package, or another Swift package, now runs under ollin, OllinLive, and OllinLiveCoding. Saving the library rebuilds it and reloads the sketch. A target with C code, a macro, or a binary is refused by name. Single-file sketches
  • A failed frame names its pass. When the GPU throws a frame away, the error now ends with the pass the failure began in.
  • Traced shadows can be switched off on one Mac. With OLLIN_NO_TRACED_SHADOWS=1 in the environment, point lights and panels cast through shadow maps. It is for a Mac whose GPU misbehaves on traced shadows. 3D

Connections

  • A listener says why its port would not open. lastError on OSCReceiver, TUIOReceiver, DMXReceiver, and EtherDreamFinder names the port another program holds. isRunning turns false, where such a receiver used to read as running, and start() tries again.
  • A publisher says where it is in its life. phase on SyphonServer, VirtualCameraServer, and PhoneScreen is one PublisherPhase: .waiting, .publishing, .unavailable, or .stopped. SessionRecorder.lastError says why a take's file could not be finished.

Examples

  • Carlos Cruz-Diez joins the recreations. Examples/Recreations/CarlosCruzDiez has Physichromie, a panel of blades whose picture depends on where the pointer stands, and Chromosaturation, three rooms of colored light the eye adapts to.
  • Eduardo Terrazas joins the recreations. Examples/Recreations/EduardoTerrazas has Cosmos, his structure laid as a tabla of wool yarn, and Posibilidades, a sheet of small drawings that each change the same diagram one way.
  • A second visit to Hiroshi Kawano. Examples/Recreations/HiroshiKawano gains SimulatedColorMosaic and Flow. Both follow the procedure he described: a chain counts how the cells of a few hand-drawn pictures sit together, then writes more like them.
  • Ten examples for the features above. Shapes/InkPen, Effects/ScannedByItself, Patterns/GatherIntoLetters, Physics/SoftBodiesMeet, 3D/Raymarching/StandingField, 3D/Geometry/GestureMarks3D, Audio/Loop, Audio/Drive, Installation/OverDesktop, and Installation/SecondView.

Changed

Each of these can change what a sketch draws, sounds like, or accepts.

  • Small dots and thin lines are a little lighter. A dot a few pixels across or a line under a pixel wide used to lay more ink than its size, and now lays exactly its own. If a sketch looks thinner, raise the size or the strokeWeight slightly. Such marks take 7 to 18% more GPU time. Drawing
  • A simulation seeded by drawing runs to a different picture. A shape drawn into a field covers its edge a little differently now, so a rule that amplifies its start (Lenia, reaction-diffusion, a sandpile) ends up somewhere else. The same sketch still repeats from run to run.
  • Blend modes keep alpha as coverage. .add no longer pushes a layer's alpha past 1, so added lights drawn back over a picture do not turn it black. .multiply, .darkest, and .subtract add no coverage, so in an empty layer they leave nothing. To darken the canvas with a layer, set the mode when drawing it back. Drawing
  • A see-through background is weighted by its alpha. A window shows a clear canvas over black, so such a background is darker there than it was. For trails, keep the canvas with noClear() and paint a see-through rectangle each frame.
  • The five distortion characters do what their names say. .softClip, .overdrive, .bitCrush, .ring, and .squeeze were presets of the system's unit, and none matched its name. Each is now a curve of Ollin's own and sounds different. If you used .softClip for its echo, add a Delay(time: 0.357) beside it. Synthesis
  • A camera set inside a layer stays in the layer. camera(_:) inside withTarget used to replace the canvas's camera too. If a sketch relied on that, set the camera on the canvas as well.
  • Volumes glow from inside by default. bounce is on, so every medium is brighter in its depths. Set bounce: 0 for the old picture.
  • The ground under a sun-lit sky is lit by the sun. Below the horizon of a .sky whose sun lights the scene, faces turned down are brighter, and the scene reads a little darker overall because the exposure counts that ground. 3D
  • The sun's light follows the clouds. Under a cloudscape the scene gets the whole beam while the sun stands in a gap and next to nothing behind a thick cloud. 3D
  • A 2D soft body rubs and stops rigid bodies by default. friction is 0.3 unless you give one, so pass friction: 0 for the old slide. Rigid bodies no longer pass through.
  • --param refuses a value the parameter cannot hold. A value past the range or off the step used to land silently on the nearest one. The run now stops and names the nearest value. Export
  • The live hosts' status chip says what stopped the sketch. It reads "Compile error", "setup() failed", or "Shader error", and "Plain build" when the optimized build failed behind the plain one. Live coding
  • ollin api <Type> prints each case's comment. The members of an enum now carry their documentation in the list. The reference offline
  • Molnár's Interruptions is redrawn from a plate. The recreation's numbers are now measured off the plotter drawing the Victoria and Albert Museum holds (E.269-2011): 56 lines a side, a lean toward the vertical, and small patches of missing lines. Examples/Recreations/VeraMolnar/Interruptions

Fixed

Drawing

  • Tiny moving dots no longer flicker. A dot under a few pixels across laid ink that depended on where it fell on the pixel grid, and none at all near a pixel's corner. Its ink is now its area wherever it lands, for GPU particles too. Drawing
  • A diagonal hatch reads one even tone. A line's ink changed with its angle and its place on the grid, which showed as bands. It is now the line's width everywhere. The outline of a built-in shape (the stroke on a drawCircle or a drawRect) is unchanged for now.
  • A line drawn into a coarse layer keeps its ink. A hatch of thin lines drawn into a half-scale layer or a simulation field came out as broken dashes.
  • See-through shapes blend by their alpha under .multiply, .screen, .lightest, and .darkest. These four took a shape's color whole, so a half-clear multiply read too bright and a soft edge left a ring.
  • A transparent PNG of added light matches the window. A pile of .add marks over a clear canvas stored one mark's color. An EXR still keeps light and coverage apart.
  • A folded outline never takes the window down. A closed curveThrough ring that crossed itself hundreds of times hit an assertion in the fill and ended the window. It now returns a fill.
  • A chamfer, stairs, or columns scope holds a negative radius at zero. chamferUnion(radius:) and its eight siblings now draw what the same operators on an SDF value draw.
  • SlitScan names its own method. The note it prints for a skipped frame said push, and the method is append.

3D

  • Lit 3D is about ten times faster on an M1 or M2. Every lit shader carried the ray tracer, whether the frame traced or not. A lit mesh filling the frame took 43 ms on an M2 and takes 3.9. A frame that does trace is as slow as before. Combinators
  • A traced shadow or a field of blocks could restart the GPU. On a Mac that traces rays in software, a shadow from a point light or a panel, or a voxelized field, could freeze the screen. Both causes are fixed, though a heavy field under a traced shadow can still fail there.
  • The live window carries on after a GPU hang. It used to show its last finished frame for good. The frame loop also holds while the Mac sleeps.
  • A glowing surface glows in a traced reflection. A mirror showed a surface with an emissiveColor or Mesh.glowing(_:) as its unlit body.
  • A marched field drawn in a layer showed on the canvas too. It happened when the canvas marched its own drawSDF3D fields at reduced resolution. The canvas now draws its own fields alone.
  • A mesh field in a layer is culled through the layer's own view. A MeshField in a layer of another shape lost copies at its sides. Instancing
  • A textured OBJ drew its texture upside down. The reader now flips vt as it reads, as the USD reader already did. 3D

Sound and simulation

  • A blown tube holds its pitch however hard it is blown. Near the top of its range the breath pulled the pitch up to 36 cents sharp. Every preset now stays within five cents from A2 to C7, and the highest notes are a little purer. Synthesis
  • A simulation takes a negative seed. makeEvolution, makeParticleLife, and makeParticleLenia crashed on any seed below zero.
  • A face's strongest expressions come in one order in every run. PhoneFace.strongestBlendShapes() listed two shapes at the same value in a different order from run to run.

Parameters and the live hosts

  • A stepped parameter holds the decimal its step names. Declared 0.1...2, step: 0.01, a parameter showing 1.5 held 1.5000000000000002, so --param zoom=1.5 was refused. A sketch that amplifies tiny differences can draw a different picture for the same seed.
  • --list-params says the step of a whole-number parameter. 8...128, step: 8 now prints 8...128, by 8.
  • The Colors panel no longer opens over the inspector. When it comes up over the parameters list it is moved beside the window.
  • A reset under a held clock shows. With the timeline holding the clock, putting a parameter back changed the value and drew nothing.
  • A package's sketch compiles every file of its target in the live window. A manifest that excluded one file made the live compile skip the files after it. A target that uses the package access level compiles there too.
  • OllinLive keeps a shader error up until the shader is fixed. Saving a .metal file with the same mistake cleared the error and never brought it back.
  • A recovery offer in OllinLiveCoding could be lost, or restored into the wrong sketch. The offer now survives the launch, and opening another document withdraws it. Live coding
  • Letting go of Command during a drag on the stage left the editor ignoring clicks. The drag now stands down when it ends.

Connections and installations

  • A piece with opening hours kept the display awake all night. Two holds on the display were taken and only one released. There is one hold now, and the dark hours release it. Installation
  • A take started right after stop() can be stopped. A second take begun before the last file closed ran on with isRecording true. Each take is its own file now. Recording
  • A stopped Syphon server or virtual camera stays stopped. stop() released the server and the next frame stood it back up.
  • An MQTT client with reconnects: false can connect again. After a drop, connect() returned without dialing. MQTT
  • A laser whose interlock tripped can be armed again. It used to stay dark until a restart. hasStopCondition and lastError say the DAC is stopped. Nothing restarts by itself: arm() clears the stop, through EtherDreamDAC.clearStopCondition(). Laser
  • A web socket a server closes says so. PushFeed.problem now reads the close code and the server's reason. Live data
  • A rebuilt Ollin Camera replaces the installed one. The app's version lives in one place now, and its README says when to raise it. Virtual camera

[0.17.0] - 2026-10-25

This release adds strokes and fills drawn as materials, eight tape and lens looks, marks built from one gesture, and textures a plotter can draw. A sketch marked @main is now a whole app on an iPhone or iPad. Paper texture's folds changed and several fixes move a picture, so read Changed and Fixed before you update.

Added

Drawing

  • Strokes in a material. strokeMedium(_:) shades a stroke as a material. .pencil, .charcoal, and .pastel(palette:) are settings of .dry(tooth:softness:roughness:palette:seed:): a light line breaks into specks, and a pastel grain takes one of several colors. The stroke's color is the pigment and its alpha the density. Marks
  • Bristle, dry brush, wet, and oil strokes. .bristles streaks two pigments along the path, and .dryBrush runs dry on the paper's grain. .wet drags the paint under it, and .oil lights its own ridges. A see-through mark lays one coat where it crosses itself. A vector export writes the flat ribbon. Marks
  • Shapes filled as what they are made of. fillMedium(_:) shades a fill from its distance to its own edge. .impasto and .knife are thick paint, .wash glazes what is under it, and .gouache covers it. It applies to drawShape, drawPolygon, and the built-in shapes with a simple outline. noFillMedium() returns to a flat fill. Marks
  • Fills of chrome, glass, and stone. .chrome reflects a studio and the drawing around its rim, .glass bends the drawing at its rim, and .facetedGlass breaks it into facets. .rock, .marble, and .sand are stone and grains. The textures move with the shape under translate and rotate. A vector export writes the fill flat. Marks
  • A shader stroke knows where it is on the ribbon. Under stroke(_ shader:), info.arcLength is the distance along the path, info.across the place across the width, and info.halfWidth the local half-width, beside info.along and info.distance. Color
  • Shaping the press. StrokeMark.pressureDeadZone ignores a press under it, and pressureCurve raises the press to a power. maxWidthChange limits how fast a recorded mark's width may change, so a sudden press swells the mark. Marks
  • Marks built from one gesture. GestureMark(mark, width:) turns one drawn path and its width into sixteen families of marks a plotter can draw. They are cloud, chain, spikes, dashes, dots, strips, feather, leaves, fringe, pixels, facets, lanes, spiral, strands, fragments, and wiggle. Gesture marks
  • A gesture's pieces, and its outline. Each family returns GestureMark.Pieces, outlines to fill or lines to stroke, and .shape merges a list into one silhouette. hull() and blob() enclose a whole gesture, and figure(_:) is the shape its two ends span. Any Shape can be spiked(_:height:) or wobbled(by:scale:). Gesture marks
  • A shape cut by a line. shape.split(along: line) gives a shape's two sides of a Ray2, clipped(to: HalfPlane(point:inward:)) keeps one side, and clipped(within:of:) keeps the band around a line. Holes are kept. Geometry
  • Hatching that fits each shape. Hatching(centersLines: true) spaces each shape's lines across its own extent, the whole number nearest its height over spacing. A grid of equal cells then gets the same lines in every cell. The SVG exporter honors it too. Export

Particles

  • Particles that read a picture. stepParticles(_:custom:textures:) hands a particle step up to four pictures, read in the snippet as picture(index, point). Particles can steer by a word, a shape, or a blur the sketch draws. A kernel of your own reads up to eight through compute(_:buffers:textures:count:params:). See the Compute/SteeredByAPicture example. Compute
  • One vertex a particle. drawParticles(buffer, style: .light, maxSize: 1) names the largest particle in a buffer, and each is then drawn as one point. A spray of millions of tiny points draws in about half the time. LineSpray gains it with no change to the sketch, and the Particles form takes the same label. Depth of field

Color

  • Palettes built around one hue. Palette.scheme(_:key:count:jitter:seed:) reads a key color's hue and builds a .monochrome, .vividAndDark, .vivid, .pastel, or .dark palette around it, with a seeded jitter. Color.mostVivid(hue:) is a hue's most vivid displayable color. Color
  • A stepped ramp. Ramp.stepped([.red, .orange, .yellow]) holds each color flat up to the next stop, for a poster-flat gradient. Ramp.stepped(stops:) places the bands, isStepped says which kind a ramp is, and reversed keeps the bands. Ramp.holographic is eight flat bands in the order a grating spreads white light. Color
  • A ramp over wavelengths. Ramp.wavelengths(from: 400, to: 700) places the pure hues of the wavelengths evenly, so color(at:) walks the physical spectrum. It is a rainbow with a wide green and no magenta. Color
  • The color of a thin film, on the CPU. Color.interference(thickness: 420) is the color a clear film that many nanometers deep shows, matching the .thinFilm filter. Spectrum.interference(thickness:ior:) is the reflectance curve behind it. A Ramp of it through .alongPath colors a stroke in a soap film's order. See Examples/Color/PearlStrokes. Spectrum

Effects

  • Wipes in any order. Combine.wipe(_:progress:feather:) turns one layer into another as progress runs from 0 to 1, and Filter.wipe(_:progress:feather:) brings a layer in over whatever is behind it. In compose { } it is .wiped(to:_:progress:feather:). Both cross to a web page. Effects
  • The order a wipe follows. A WipeOrder is a straight edge (.directional(angle:)), a growing circle (.radial(center:)), a clock hand (.angular(center:angle:)), blocks (.cells(columns:rows:)), or a dissolve (.noise(size:seed:)). Reshape one with .folded(), .tiled(_:), .bands(_:), .shuffled(seed:), .checker(), .diamond(), or .reversed(). Effects
  • Copies of a layer. Filter.repeated(_:count:scale:rotation:opacity:hueShift:jitter:seed:) lays a layer out again in a grid, around a ring, or along a line. Each copy is a step smaller, more turned, fainter, and further around the hue wheel. facesOut turns the copies on a ring to face out. It crosses to a web page. Effects
  • A glowing edge. Filter.edgeGlow(width:colors:spots:spotSize:pulse:bloom:center:phase:) lays a band of light along a layer's edge, with spots of each color racing around the shape. It crosses to a web page with the other layer styles. Layer styles
  • A worn videotape. .vhs(smear:jitter:damage:amount:phase:) plays a layer off a worn tape: lines jitter sideways, the bottom tears where the heads switch, and the color trails behind edges. Feed phase your time. An amount of 0 leaves the layer untouched. Effects
  • A JPEG at a quality, without a file. .jpeg(quality:subsamplesChroma:) runs the format's own block transform on a layer: flat tiles with ringing toward quality 10, and the color at half resolution. With subsamplesChroma: false the color keeps full resolution. The layer's alpha is kept. Effects
  • Tilt-shift and a progressive blur. .tiltShift(focus:angle:band:falloff:radius:) keeps a band sharp around a line and blurs away from it, so a view reads as a model. .progressiveBlur(angle:start:end:radius:) fades a blur in across the layer, matching .gaussianBlur(radius:) where it is full. Effects
  • A light leak. .lightLeak(anchor:spread:streaks:colors:flicker:intensity:phase:seed:) fogs a layer with light from a point on its edge, with streaks along the beam through a three-color ramp. It never darkens a pixel. Effects
  • A page peeling. .pagePeel(amount:corner:radius:shading:sheen:shadow:back:) curls a layer up from a corner, its back showing. The ground it lifts off is transparent, so what is drawn under it shows through. Effects
  • Hairline scratches. Generator.scratches(count:thickness:length:angle:wobble:flicker:color:phase:seed:) draws the scratches of a worn print over nothing, to composite over a picture. Each line holds its place for a few dozen frames and flickers. Effects
  • Datamosh. Sim.datamosh(amount:blockSize:motion:drift:wander:period:seed:) is a field whose blocks refresh from the drawing or hold, a held block dragging its last contents along the drawing's motion. The Effects/TapeAndLens example runs all eight tape and lens looks. Every one but the datamosh crosses to a recorded web page. Effects
  • A red-and-cyan anaglyph. .anaglyph(separation:) prints a layer as a stereo pair for red-and-cyan glasses. scene.combined(with: scene.depth, .anaglyph()) reads a depth map instead. A near thing then stands off the page and a far one sinks in, by its distance from focus. Effects
  • A heat mirage. .mirage(horizon:faults:amount:phase:) shifts every row above a horizon sideways by a wavering amount and mirrors the picture below it, the shimmer over a hot road. Filter.mirageShift(y:) is the row shift, for a sketch that draws where a row went. Effects
  • Schlieren. .schlieren(angle:amount:) reads a layer's luminance as the density of a gas. Its gradient along a knife's angle becomes light and dark about a mid-gray: the knife-edge photograph of heat or a shock. Effects
  • Bubble wrap. .bubbleWrap() lays a sheet of bubble wrap over a layer, or over the whole frame as a postProcess. Each bubble is a lens that magnifies what is under it. Effects
  • Chrome for lettering. .chrome() fills a layer's shape with airbrushed logo chrome: a sky above a bending horizon, a floor below, and a bright wire at the join. The sky and the floor are Ramps, .chromeSky and .chromeFloor by default. It exports to the web page. See Examples/Effects/ChromeLettering. Effects
  • Holographic foil. .holographicFoil() fills a layer's shape with crumpled foil: a stepped rainbow that breaks at every crease, under a light at lightAngle. phase sweeps the bands, so phase: time and lightAngle: time * 0.3 make the sheet move. relief presses the layer's own brightness into the foil. See Examples/Effects/CrumpledFoil. Effects

Textures and geometry

  • A sheet of facets. FacetField lifts a triangulation into flat faces. Each knows its normal, its tilt, and how squarely it faces a light (facing(_:)), and edges lists every crease once. Build one with FacetField.grid(in:spacing:seed:height:), FacetField(points:height:), or crumpled(in:spacing:crinkle:seed:), and lift it again with lifted(by:). Voronoi & Delaunay
  • The foil reads the facets you hold. .holographicFoil() takes a FacetField, its own by default or one you hand it. The creases you stroke from sheet.edges then land on the filter's own. Effects
  • Textures drawn as lines. Four textures a plotter can draw, each as geometry a sketch holds and strokes. WoodGrain.trace(in:) traces wood grain around its knots, and Frost.grow(along:) stands hoarfrost needles along an outline. Crackle.grow(in:) walks the veins of cracked wax, and Ikat.stripes(in:) dyes stripes with stepped edges. See the Patterns/LineTextures example. Textures
  • Chromatography rings. Chromatography.scatter(in:count:radius:) and .spread(at:radius:) give the stain a drop of ink leaves as it spreads through paper, as geometry a sketch holds. Drops that spread into each other stop where they meet. The Effects/Phenomena example shows it with the anaglyph, the misregistered plates, the mirage, the schlieren, and the wavelength ramp. Textures
  • Rust and verdigris. generate(.rust()) paints corrosion blooms over steel, and generate(.verdigris()) a green crust over bronze. The blooms are a Patina a sketch can hold, from Patina.scatter(in:count:radius:seed:). Each Blob has its outline, masses, and blisters as geometry, and the generator paints the blooms it is handed. Textures
  • A terrazzo floor. generate(.terrazzo()) lays chips of stone in a binder, in three sizes, each clear of every other. The chips are a Terrazzo a sketch can hold, from Terrazzo.scatter(in:chipRadius:density:gap:tones:seed:). Each Chip is a Shape, and the generator paints the floor it is handed. Textures
  • A crease in a heightfield. sheet.creased(along: [a, b], width: 0.03, amplitude: 0.3) folds a Heightfield along a path, and creases stack into a crumpled sheet. Heightfield.creaseProfile(at:) is the crease's own profile. Terrain

3D

  • Any 3D field as blocks. SDF3D.voxelized(size:gap:jitter:seams:occlusion:seed:) rebuilds a raymarched field out of cubes on a grid, each colored by the field at its center. A melt becomes a voxel model, and a slab one block thick becomes pixel art. It costs about three times its field, and it crosses to a web page. SDF combinators
  • A hologram material. material(.hologram) rules a diffraction grating into a polished metal, the rainbow of a hologram sticker or the back of a disc. Material.hologram is the strength, gratingSpacing the groove pitch in nanometers, and gratingRotation turns the grooves. A path-traced export shades it as the metal under it. See Examples/3D/Materials/Hologram. 3D

Export and output

  • Stroke media on a web page. --export-web carries a stroke under every stroke medium: .pencil, .charcoal, .pastel, .dry, .bristles, .dryBrush, .wet, and .oil. A wet stroke over a canvas that keeps its paint (noClear) still stops the export by name. Web page
  • Plates out of register. separation.misregistered(offsets:rotations:) moves each ink's master by its own offset and turns it about the sheet's center, so the preview shows the misprint. Misregister first and screen after. Print separations
  • A sketch is the whole app on a phone or a tablet. @main on a sketch now starts an app on iOS, through Sketch.main() and OllinApp.run(_:). Its @Params open in a panel or a sheet. ollin new --kind ios-app writes such a sketch, and ollin phone now takes one marked @main. The sketch on the phone
  • A sketch's --help. Running a sketch with --help or -h prints its name, how to run it, its parameters as --param takes them, and every flag it reads. It opens no window, writes no file, and does not run setup(). Export

Examples

  • Jesús Rafael Soto joins the recreations. Examples/Recreations/JesusRafaelSoto has Vibracion: wires hung before fine stripes flicker as the pointer moves the viewer. It follows Vibration (1961), Vibration jaune (1965), and Grande écriture (1972). Penetrable walks a visitor through the hanging tubes of The Houston Penetrable. Both export SVG.
  • Roman Verostko joins the recreations. Examples/Recreations/RomanVerostko has Pathway, after the procedure he published in 1988: one brush gesture, drawn again thousands of times behind itself as fine pen strokes. Cyberflower repeats one curved line along a larger copy of itself until the lines fold into a flower. Each exports an SVG a plotter can draw.
  • Dóra Maurer's folder grows to four. Examples/Recreations/DoraMaurer adds two works. FiveOutOfFour follows 5 out of 4 (1975 and 1979) and 4 out of 3 (1976). Overlappings follows the shaped canvases of 2007 to 2012: congruent sheets on one bent CoonsPatch, their overlaps mixed as layers of paint. Both export SVG.

Changed

  • The folds of .paperTexture look different. Its folds are now straight seeded creases lit on one flank, shaped as a Heightfield crease is, so a paper-textured picture changes. Terrain
  • The Guide is forty-six chapters. Chapter 20 split in two. Pictures restyled keeps the painting, line, grade, film, and paper looks. The new Chapter 21, Glass, chrome, and tape, takes the materials and the tape and lens looks. Every chapter file from 21 on is one higher: 21-PicturesYouSolve.md is now 22-PicturesYouSolve.md, through 46-Installations.md. The Guide's contents
  • Feature edges on a mesh that moves. A mesh rebuilt every frame over the same index buffer now redoes only the crease test. featureEdges() on a 1.2-million-vertex mesh costs about 16 ms a frame, where it cost 0.8 s. Hidden-line solids
  • A volume skips its empty space. The march steps past the parts of a grid that hold nothing, and every volume draws the same picture, byte for byte. The Volumes example's plume went from 9.6 to 7.3 ms a frame at 1080 square on an M2. Volumes

Fixed

3D

  • Touching pieces bounce the same light every time. Under globalIllumination(), a solid cut into pieces that fit back together could light a face a level brighter or darker from render to render. Mesh.fractured did, and so did a box flush on a floor. The same seed and frame now draw the same picture. 3D
  • A wall, a ceiling, or a floor reads the bounce where it stands. Under globalIllumination(), a surface at a room's boundary read its light from in front of itself. A ceiling came out brighter than a path trace of the same room. A bounce-lit room is now a little darker near its walls. 3D
  • An emissive map glows by its map in the bounce. A panel glowing through Mesh.surfaceMapped(emissive:) lit the room under globalIllumination() as if its whole face glowed. Its light now follows the map, as in the path-traced export. A triplanar mesh, a copy, and a map drawn as a layer the same frame still glow whole. 3D
  • A polished floor throws its light into the bounce. A smooth metal or glossy surface under a lamp threw almost none of its color onto the ceiling. The color now lands there, and on the walls as a broad, soft patch. 3D
  • Fog stays where it was drawn under a caption. A 3D scene with fog and a caption, or anything in withOverlay, drew the fog a second time over the finished frame. A low mist became one solid sheet below the horizon. Effects
  • A lens flare's coatings reflect what a thin film does. A coated surface sent back about twice the light a real single-layer coating does, and more off the axis. The reflectance is now exact, and the ghosts' colors shift with it. Lens flare
  • stopped(to:) means the f-number it names. The iris was closed too little: the double Gauss at f/8 stood at f/5.5 and the Heliar at f/6.4. A stopped-down flare now draws smaller ghosts and a longer star. Lens.standard is the double Gauss at f/5.6, which draws the default flare as it was. Lens flare
  • Every ghost brightens as the iris closes. Stopped down, a flare brightens every ghost by as much as the opening's area shrank. A ghost bounded by the front glass used to keep its brightness. A stopped-down Heliar shows more of its veil. Lens flare
  • A path-traced room is as bright as the window shows it. In an environment with lamps the trace ran hot. A white matte ball in the bundled interior traced a quarter brighter than the window showed it. The two now agree within 1%. Path-traced export
  • Light behind solid glass in the trace. In a path-traced export, a ball behind a solid block of glass read too bright, since the light behind the glass was counted twice. Behind a block with the air's own index it now reads as it does with no block. Path-traced export
  • A few more numbers stop at the physics bridge. A body's buoyancyScale, a character's facing, a rope's radius, and the 2D world's bounds refuse a bad value and keep their own. Bad means not a number, an infinity, or past a billion units. A ragdoll's pose(from:) or drive(toward:) ignores a scene whose transforms hold one. Physics in 3D

Drawing and color

  • A layer can draw a filter made the same frame. A filtered or combined layer drawn into another layer came out empty, as in withTarget(b) { drawImage(a.filtered(.invert()).image, 0, 0) }. A layer that draws a filter's result now waits for it. Effects
  • Hatching no longer skips its first line. Hatching.lines(filling:) and the SVG export's hatched fills could start one step too far in, so equal cells in a grid got different line counts. Neighboring fills still line up. Export
  • displayHeadroom is 1 unless the sketch asked for headroom. A .standard or .wide sketch beside another window holding headroom read that window's value. It now reads 1 there, and only an .extended sketch reads the screen. Color output
  • A live soft proof on a wide canvas proofs the canvas's own colors. Filter.softProof with a proof from: .displayP3 gave wrong colors on a wide canvas. A saturated P3 color now proofs within two levels of the same proof on the CPU. Print color

The live window

  • A live window survives a framework rebuild. A save after the framework was rebuilt under an open window crashed the window. OllinLive, OllinLiveCoding, ollin, and the gallery now refuse that reload with one sentence saying to relaunch, and the sketch keeps playing. Live coding
  • A picker that ran off the panel. A @Param picker with style: .segmented and names wider than the inspector ran past the panel's edge, where its segments could not be clicked. It now falls back to the menu row. Parameters

[0.16.0] - 2026-10-18

This release adds clouds a compute kernel fills, soft bodies from any outline, typed text, and pinch and turn. A curve or a row of bars can be a parameter, and the procedural sky has its own sun. Some physics calls now throw and a few looks moved, so read Changed before you update.

Added

Drawing

  • A small picture drawn big, cell by cell. imageSampling(.nearest) keeps every pixel a hard square when a picture is drawn larger than it is. .linear stays the default. It is drawing state beside tint, restored by withState { }, and an --export-web page honors it. New example: Images/PixelArt. Images
  • A tone map that keeps a bright color's hue. toneMap(.neutral) is the Khronos PBR Neutral curve. A bright orange stays orange, where .reinhard and .aces turn it yellow. A web page carries it, and Rendering/ToneMapping cycles through four curves. HDR

Geometry and simulation

  • A shape bent into a curved patch. CoonsPatch is a four-sided region with curved sides, read with point(u:v:). Contour.warped(from:into:), also on Shape, bends an outline from a rectangle into one, so lettering in a box lands on a waving banner. See Shapes/WavingBanner. Geometry
  • Bending outlines. Contour.warped(from:along:) bends an outline to follow one curve the way it followed another, so lettering on a straight baseline rides a wave. pulled(toward:amount:radius:) draws the part near a point toward it. Both are on Shape too. See Shapes/WavyLettering. Geometry
  • Smoothing, splitting, and fitting an outline. smoothed(neighbors:keepingCornersOver:) averages an outline and leaves its corners, and split(atCornersOver:span:) cuts it at them. fitted(tolerance:) traces a dense outline with a few cubic curves as a Path (Schneider's method). Path.cubics reads any path back as cubic Béziers. See Shapes/TraceToCurves. Geometry
  • Packing rectangles. packRectangles(_:in:padding:allowsRotation:) fits rectangles of given sizes into one bin without overlap. The RectanglePacking it returns says where each went and which did not fit. It is MaxRects with the best short side fit (Jylänki's tightest variant). See Patterns/PackedPhotos. Packing rectangles
  • A soft body from any outline. World.addSoftBody(from:) turns a closed Shape into a squishy body in the 2D physics world that keeps its area and its corners. stiffness, bend, pressure, and shapeMemory set the feel. Soft bodies keep each other out, and rigid bodies pass through for now. Physics
  • What a soft body reports and takes. A SoftBody reads its shape, area, center, and velocity, takes push, applyForce, and move(by:), and inflates when its restArea is set. With particlesCollide on, loose particles are pushed out. Physics/Blobs is rewritten over it. Physics

3D

  • A cloud a kernel writes. ComputeTexture3D is a box of samples on the GPU that your own compute kernel fills through compute(_:writing:). drawVolume draws it in place of a Volume. PingPongTexture3D pairs two for a simulation, stepped by compute(_:reading:writing:). Examples/3D/Effects/Volumes fills its plume from Plume.metal.
  • A volume casts its shadow. Under castShadows() the solids under a cloud are darker by the light the cloud stops, so a plume stands in its own shadow. A scene without castShadows() draws as before. Volumes

Input

  • Typed text. typedText() reads the keyboard as a text field does. A dead-key accent arrives as "é", an emoji as itself, and Chinese or Japanese once a candidate is chosen. composingText holds the reading until then, and textTyped() fires as text arrives. Examples/Input/TypedText
  • Editing keys and the caret in typed text. Return arrives as "\n" and Delete as a backspace, which caption.append(typing: typedText()) reads as taking a character away. caretPosition tells the input method where the line is. key and keyPressed() are unchanged. A take records the text.
  • Pinch and turn. Two fingers on the trackpad reach draw() as pinchScale, a factor, and turnAngle, in radians the way rotate turns. size *= pinchScale and spin += turnAngle keep a shape under the fingers. fingersPinched() and fingersTurned() fire once per event. Input
  • A pinch drives the view and the camera. viewControl() zooms with a pinch about the pointer and cameraControl() dollies with one. A take records both. The phone showing the sketch (PhoneDevice.show) sends its own two fingers to the same values. Examples/Input/PinchAndTurn

Parameters

  • A curve as a parameter. @Param var falloff = ResponseCurve([(0, 1), (0.5, 0.8), (1, 0)]) is a small graph in the inspector whose points drag, read as falloff(t). count: bounds its points. ResponseCurve never overshoots them (after Fritsch and Carlson), and .easing hands it to a call that takes an Easing. Examples/Live/Parameters
  • A row of bars as a parameter. A list of numbers, @Param(0...1) var accents = [1, 0.2, 0.6, 0.2], is a row of bars you paint by dragging across them, for a step pattern. A list of whole numbers works too.
  • Curves and bars go where a parameter goes. Save writes them back into the sketch, a cue and a timeline key hold them, OSCQuery serves them, and the phone's remote surface edits them. For one run, pass --param falloff=1@0,0.7@0.4,0@1 or --param accents=1,0.2,0.6.

Export and output

  • A still named by its moment. --at S stands beside --frame N on every one-frame export, from --export and --export-exr to the vector files. The frame is S seconds of the sketch's clock at --fps, so --at 2 is --frame 120 at 60 fps. Export

Examples

  • A second visit to Mohamed Melehi. Examples/Recreations/MohamedMelehi gains two sketches where his wave meets the sun. Soleil is after the untitled panel of 1975, and Volcanique after Volcanic (1985). The wave travels, the palettes can be edited in the inspector, and both export SVG.
  • Dóra Maurer joins the recreations. Examples/Recreations/DoraMaurer is after the Hungarian artist (1937 to 2026). Displacements runs the rule she stated for her Displacements: eight colored parts cross a grid one unit a step. QuasiImage enlarges one detail until every line is a band of flat color. Both export SVG.
  • Eduardo Mac Entyre and Miguel Ángel Vidal join the recreations. Examples/Recreations/MacEntyreVidal is after the two painters who named Arte Generativo in Buenos Aires in 1959. Circunferencias is Mac Entyre's circle: families of circles in a disc. Focos is Vidal's straight line: an octagon of ruled faces and fans of lines. Both export SVG.

Changed

Each of these can stop a sketch from compiling or change what it draws or sounds like.

Drawing

  • setup() may throw. It is now open func setup() throws: a loader that cannot read its file lets its FileError out with a bare try, not try!. A window reports the error and holds the sketch, and an export fails with it. An override may leave throws off, so existing sketches compile. Sketch
  • The in-memory recorders take a try. OllinApp.svg(of:), pdf(of:), gcode(of:), dxf(of:), drafting(of:), stitching(of:), embroidery(of:), and spatialScene(of:) run setup() for a frame, so they now throw with it. A caller of those adds a try. Sketch
  • CubicBezier is a value of its own. HobbySpline.Segment is now a typealias of the top-level CubicBezier, with the same point(at:) and direction(at:). Path.cubics and Contour.fitted(tolerance:) return it too. Every existing spelling compiles unchanged. Geometry
  • A kept Shape drawn again costs a copy. A shape kept in a property reuses its fill and stroke after its first draw. On an M2, 195 traced outlines went from 124 ms to 6 ms of drawing. Dashed, brushed, profiled, fading, and gradient strokes are worked out each time. Every solid stroke costs less too. No pixel changes.
  • A @Param tunes the 2D view live. viewControl(center:zoom:) applied its arguments on the first call only. They are now the view's home. A changed value glides the view there until the viewer moves it, and after that changes only where resetView() opens. Drawing
  • A simulation can read a filtered layer, a frame late. A filtered(_:) or combined(with:_:) output in a SimField's inputs used to read as zero. It now arrives as it stood a frame before, so a kernel can read a measurement such as .distanceField(). It is zero on the first frame. Effects
  • A sprayed line's weight counts under .perLine too. A SprayLine or SprayQuad under .perLine(n) draws its weight's share of n points, never fewer than one. The weight used to be ignored there. The default weight of 1 draws what it drew. Depth of field

3D

  • The procedural sky has its sun. A .sky environment now lights the scene with a sun where it draws its disc, and castShadows() throws its shadows. A sketch with a .sky and no directional light changes picture. Environment.sunlight(_:) decides: .automatic yields to a directional light of your own, .always never does, and .off keeps the sky's glow alone. 3D
  • The air is the scene's light. Under a .sky, aerialPerspective() takes the sky's horizon as its far light, so far ridges fade into the sky behind them. Without a sky, the first directional light's color and intensity scale the haze. Atmosphere
  • A copy's turn is a Rotation3D. MeshInstance.rotation is a Rotation3D where it was three Euler angles, so a physics body's rotation places a copy directly. .aboutY(a) spins about y. Rotation3D.euler(x:y:z:) composes three angles as rotateX, rotateY, rotateZ would, which is what rotation: Vector3(a, b, c) meant. SurfaceSample.alignment(spin:) returns one too. Instancing
  • The live window marches a volume by volumetricQuality. A volume takes one and a half steps per sample spacing at the default, one at .performance, and two at .detail. Every export takes two, which is what every march took before. Volumes

Physics

  • A 3D world that is full says so. Every call that creates a body in a World3D (addBody, addStaticBodies, addCharacter, addBodies(from:), addVehicle, addRagdoll, addSoftBody, addRope) throws PhysicsError.full once the world holds its maxBodies. The first four did not throw before, so every 3D sketch gains a try on them, or try? in a click handler. Physics in 3D
  • One drag in both worlds. A particle and a rigid Body now read drag alike: the share of speed lost every sixtieth of a second, whatever the frame rate. Particle sketches feel as they did at 60 fps. World3D gains a drag too, defaulting to the 5% a second every 3D body already lost. Physics
  • A rigid 2D body slows more by default. At the default drag it loses 45% of its speed a second where it lost 1%. Set world.drag = 0 for the old coasting, as the Physics/Burst, Chain, Joints, and RigidBodies examples do. A .kinematic body is never dragged. Physics
  • A body's own restitution wins. The walls of a 2D bounds and the 3D ground no longer carry the world's restitution. A ball given restitution: 0 no longer bounces off a default floor. A body that named none follows world.restitution when it changes. Body.restitution is readable and settable in 2D. Physics in 3D
  • A change to gravity wakes settled bodies, and a spin is not capped. A tilt now reaches a box asleep on the floor, and an angularVelocity of 100 rad/s reads back as 100. Physics in 3D
  • substeps in both worlds. Cut a step into pieces where a joint's loss shows. A bob on a rod swings back to 70% of its height at one piece a frame and 98% at sixteen. The default, 1, changes nothing. A physics snapshot carries drag and substeps, and the three formats before it still read. Physics in 3D

Sound

  • Every blown tube speaks from pressure 0.3. A note's start moved with its tube and pitch, so the clarinet spoke only from about 0.6. Every note now starts at 0.3, and full pressure blows what it always did. A sweep written for the old dial swells sooner. Physical models
  • A Limiter listens ahead, and its sound leaves 5 ms later. It used to flatten every crest over the ceiling. It now listens Limiter.lookahead ahead, so the wave keeps its shape and nothing crosses the ceiling. Synthesis
  • Delay holds its settings to their ranges. time is held to 0...2 seconds (Delay.maxTime), feedback to 0...0.95, and mix to 0...1, at init. A time of 3 s used to read back as 3 and echo at 2. It reads back as 2 now. Synthesis

Export and output

  • A wide frame's files keep their depth. A .wide or .extended PNG is written at 16 bits a channel under the Display P3 curve. It was 8 bits under a linear profile. A HEIC's picture is 10 bits, up from 8. A .wide video stays 8 bits and now takes a standard frame's dither. Color output
  • A see-through still stores its color as drawn. A PNG of a background(.clear) canvas keeps each pixel's color beside its coverage, no longer scaled by it. OllinApp.image(of:) of such a canvas is tagged CGImageAlphaInfo.first, straight alpha, where it was premultipliedFirst. Code that reads the bytes itself reads the color as drawn. Export

Parameters and the live window

  • Timeline edits undo. ⌘Z while the timeline panel is in front puts the last edit back, and ⇧⌘Z redoes it. A drag is one step. Clicking a key moves the playhead onto it, a scrub near a key snaps to it, and the footer names a selected key's value.
  • The keyframe diamonds make one column, and come with the panel. Every inspector row's diamond sits at the trailing edge, after its control. With the Timeline panel closed, only a parameter a track or a rule already drives keeps its mark.

Fixed

Drawing

  • A sprayed line in focus keeps its light. An in-focus line piles its points onto a few pixels, and an Accumulator lost most of that light once they were bright. Every LineSpray, and drawParticles(_:style: .light) alone in a withAccumulator block, now keeps all of it, so dense in-focus lines come out brighter. Depth of field
  • A line with no light costs nothing in a spray. A SprayLine dark at both ends, or a SprayQuad with no light, gets no points, and under .byLength the lit ones share the whole pass. A spray whose pieces all go dark now develops dark, where it kept its last picture. Depth of field

3D

  • A still 2D line stays crisp under temporal anti-aliasing. In the live window, a one-pixel 2D line drawn into a 3D canvas was smeared across three columns with the camera still. 2D over a background color now passes through exactly as drawn. 3D
  • The sky turns with the camera. A turning camera smeared an environment's sky under temporalAntialiasing(), left it unstreaked under motionBlur(), and warped it under temporalUpscaling() and frameInterpolation(). The backdrop now turns with the camera, and a bright disc it passes no longer rings into a halo. A plain background(_:) is unchanged. 3D
  • A mover's edge streaks with it. Under motionBlur(), a pixel that a withMotion mover half covered took the background's motion, so the mover's edge stayed sharp. A pixel the mover covers at all now carries its motion. 3D
  • withMotion keeps its drawing state inside the block. It saves and restores the transform and style as withState does, so withMotion { translate(x, y, 0); drawMesh(box) } in a loop places each box from the origin. Each translate used to add to the last, which marched a grid of boxes off screen. 3D
  • A white surface sends back the light that reaches it. A white plate with a physically based gloss sent back up to 135% of the light that fell on it under lamps. It now returns the light within half a percent at every angle. Floors seen low and glancing read a little darker and glossier. 3D
  • A panel's traced shadow is the share of its light the blocker stops. The floor under a blocker's edge kept more than twice the light that arrives there. The near part of a panel now weighs more than its far part. 3D
  • A pane of index 1 changes nothing in the path-traced export. A ball seen through clear glass of the air's own index read 8 to 12% brighter than without it. It now reads the same. Path-traced export
  • A picture shows in a traced mirror and through traced glass. A mesh drawn with Mesh.textured showed as its plain fill in a ray-traced reflection and through traced glass. A traced hit now reads the picture, from a loaded image or a layer's image. Its other maps still show only on the surface. 3D
  • A floor gathers the whole sky. Floors under a sky or a loaded map came out dim: 3 to 8% under a clear procedural sky, 14% under a hazy one. A floor now gathers the sky's light within 2% on a clear day. 3D
  • Two volumes over one box composite in call order. When two volumes sat the same distance from the eye, an absorbing medium drawn over a glow could land under it. The later drawVolume is now on top. Volumes
  • A glowing surface lights its neighbors. The bounce now carries a surface's glow (Mesh.glowing, an emissive color). A glowing slab lights the floor under it, as it does in the path-traced export. 3D
  • A metal bounces its own color. Under globalIllumination() a copper wall throws copper onto what faces it. A physically based wall used to bounce about three times its share of light. The standard finish is unchanged. 3D
  • An export's bounce reaches its depth in a light room. A white room's bounced light came out too dim in an export. Exports and snapshots with the bounce on now render brighter in light rooms. 3D

Physics

  • A dense pile of 3D bodies no longer stops the sketch. A box packed among others could trip an assert and end the process. The world now holds sixteen touching pairs a body, and a step that still drops contacts says so in World3D.lastError. maxBodies reads back what the world was made with. Physics in 3D

Sound

  • A plucked string rings for its decay at every pitch. A high note rang a fraction of the time it was given: the steel string's 3.6 s was 0.64 s at MIDI 93. Every note now rings for its decay, through Jaffe and Smith's decay stretching near the top. Physical models
  • A lifted bow lets the string ring. At pressure 0 the bow sat on the string and muted it within a tenth of a second. It now leaves the string over the bottom tenth of pressure, so the string rings for its decay. Physical models
  • A blown tube holds no offset. What a tube sent out sat below zero by up to 0.17 at every pressure under full, which ate headroom in a mix. Physical models
  • The four built-in rooms are four rooms. On macOS 27, Reverb(.room), .hall, .plate, and .cathedral all sounded as the same medium hall. Each now loads its own settings, so a hall and a cathedral have their long tails. Synthesis
  • A distortion at mix 0 passes the sound unchanged. The unit still colored what it passed at mix 0. It now steps aside, as a flat equalizer does. Synthesis

Export and output

  • An export no longer writes a frame the GPU threw away. A frame the GPU discarded, after another program's fault, was written half drawn. It is now drawn again, up to twice. One that builds on the frame before (noClear(), a persistent layer, a simulation, --subframes) stops the export with an unrendered error. Export
  • A gain map keeps a highlight's edge. A HEIC rebuilt a highlight's edge up to 38% off. The edge now rebuilds within about 2% of the rendered frame, or 4% for a frame past about 1.5 million pixels. Color output
  • A black ground separates to black alone. A black background in separated(into: [.black, .fluorescentPink]) laid solid pink under the black, in either ink order. A tie now goes to less ink. Print separations
  • An absolute proof shows the paper, and the paper is the stock's. An absolute SoftProof of white came out cyan, and the simulated paper far yellower than the press profile's own stock. White now proofs as the stock. An .absolute proof shows the paper whether or not simulatesPaper is set. Relative and perceptual proofs are unchanged. Print color
  • A video started before an export plays in it. A VideoPlayer told to play() in a property's initializer held its first frame for a whole export. The play now carries over to the export's clock. Examples/Vision/OpticalFlow is rendered again.

Parameters and the live window

  • The timeline's authoring loop works as written. A parameter changed while the clock is held shows at once. The diamond on a key re-keys a changed value, where it removed the key. An edit made with the panel closed lands where the clock stands. The panel takes its first click as a drag.

Examples

  • ObjectTracking follows something with no camera. With no camera it tracked a still photograph. It now plays the bundled dance film and takes its first lock from a FaceTracker box. The Vision reference listed a stop() the tracker does not have: the call is stopTracking().

[0.15.0] - 2026-10-12

This release adds curves you can ask where they cross, a shader as paint, volumes, layer styles, lofting, and hidden-line solids. An export can blur motion from subframes, and a sketch that is a package reloads live. Some fixes change how a camera move, a caustic, or a struck instrument comes out, so read Changed and Fixed before you update.

Added

Drawing

  • Segments, arcs, and ellipses as values. LineSegment, Arc, and Ellipse join Circle and Rectangle as values a sketch holds. Each knows its length or perimeter, its area, its bounds, and the point on it nearest to another. drawLine(_:), drawArc(_:mode:), and drawEllipse(_:) draw them. Geometry
  • Where two curves cross. Those three, with Circle, Rectangle, Triangle, and Contour, share the PlaneCurve protocol. crossings(with:) returns the points where any two meet, sorted along the shape you asked. Geometry
  • More measures on a circle, a rectangle, and a triangle. Circle gains area, perimeter, point(at:), nearestPoint(to:), and distance(to:). Rectangle gains area, perimeter, and edges, and Triangle gains perimeter and edges. Geometry
  • A shader as paint. fill(shader) and stroke(shader) take a Shader anywhere they take a color. Its shade(uv, info) runs at every pixel the shape covers, where uv runs across the shape's bounding box. info.position, info.distance, and info.along place the pixel. Paint.shader(_:) carries one as a value. Color
  • Where a shader paint reaches. It works on every shape, stroke, curve, and outline text. A mesh under fill(shader) takes it as its surface texture. A vector export writes such a shape in middle gray, and a web page export stops and names the call. Color
  • Smoothing that keeps the points. smoothed(neighbors:) on a Contour or a Shape moves each point to the average of itself and its neighbors. The outline keeps one point for each it had, so anything keyed to its points stays in step. weights: .box is the plain average. Curves
  • The slope of a fitted field. RadialBasis reports how its field changes. gradient(at:) is the way uphill for a field of numbers, and derivative(at:along:) works for any field. For a function of your own, derivative(at:function:) and gradient(at:field:) measure the slope by central differences. Fitting

Color and effects

  • Layer styles. Six filters give a layer an edge of its own, read from its alpha: .outline(width:color:align:), .dropShadow(offset:radius:color:), .innerShadow(offset:radius:color:), .outerGlow(radius:color:), .innerGlow(radius:color:), and .bevel(width:depth:profile:angle:elevation:highlight:shadow:). They chain like any filter. All six cross to a web page, and so does .distanceField, which used to stop the export. Layer styles
  • Measuring color. distance(to:) says how different two colors look, in OKLab or by the CIE's 2000 formula with measure: .ciede2000. The formula matches the test pairs Sharma, Wu and Dalal published. CIELab brings in the Lab numbers swatch books give. Palette.nearest(to:) and nearestIndex(to:) find the swatch most like a color. Color
  • A picture's histogram. Image.histogram(of:bins:in:) counts a picture's pixels by lightness or by one channel, and percentile(_:) reads its working black and white. Color
  • Shades whose hue drifts. Palette.shades(of:count:) and Ramp.shades(of:) build a ramp of one color the way painters shade. The lights turn toward yellow and the shadows toward blue or purple. hueDrift sets how far the hue turns, and a negative drift cools the lights. Color

3D

  • Lofting. Mesh.loft(_:along:at:smoothed:scale:twist:capped:) and drawLoft build one surface through several flat shapes placed along a 3D path. A bottle runs from a square foot through a round belly to a narrow neck. Sections blend as a smooth curve, or straight from rib to rib with smoothed: false. Sweeps
  • Hidden-line solids. featureEdges(creaseAngle:) draws a mesh as a draughtsman draws a solid. Over the filled faces it strokes only the creases, the boundaries, and the silhouette, at strokeWeight. Near solids hide the edges of far ones, and every copy under drawMesh(_:instances:) gets its edges. Hidden-line solids
  • Edge weight in world units. The weight of a hidden-line edge is in canvas points, the same at any distance. strokeWeight(_:in: .world) sets it in world units, and noFeatureEdges() turns the edges off. Hidden-line solids
  • Volumes. A Volume is a box of density samples, built from a function, a list, or Volume.noise. drawVolume(_:size:medium:) draws it in a 3D scene as smoke, cloud, fire, or ink. It scatters the scene's lights, shades itself, and takes the shadows solids throw into it. Volumes
  • What a volume is made of. A Medium sets density, color, glow, glowIntensity, and anisotropy, with presets .smoke, .cloud, .fire, .ink, and .nebula. A solid inside a volume is veiled by the medium in front of it, whatever order the calls came in. A web page export names drawVolume and stops. Volumes

Generators

  • A turtle you drive from code. Turtle is a pen you walk across the canvas. forward, back, left, and right move and turn it, and penUp and penDown break the line. pushState and popState draw a branch. move(to:), home(), and heading place it outright. Each run is a Contour, closed after close(). Turtle
  • Noise in three dimensions that loops. noise(x, y, z, loop:) reads a volume that changes over a lap and comes back exactly to its start. A point cloud's drift then closes a looping export. signedNoise, fbm, signedFbm, ridgedFbm, and turbulence take the same form. Noise

Export and output

  • Motion blur drawn from subframes. --subframes N draws each exported frame at N moments while the shutter is open and averages them. It blurs anything a sketch draws, at N times the render cost. --shutter F sets the opening, else the sketch's own motionBlur(shutter:), else 0.5. In code: OllinApp.exportSubframes and OllinApp.exportShutter. Export
  • What a subframe export asks of a sketch. At each moment time steps through the opening and deltaTime is the time since the last draw. frameCount counts each moment, so motion counted in frames runs N times as fast. A picture carried between draws, such as a noClear pile or a feedback layer, is refused by name. Export

Tools

  • Live reload for a sketch that is a package. The live window compiles a sketch with every other .swift file of its SwiftPM target, so saving a helper file reloads. ollin MySketch runs a package by its folder, and a bare ollin runs the one you are in. --target <name> picks one sketch of several. Single-file sketches
  • A package's resources in the live window. The live compile reads Package.swift, so a picture in a processed Images/ folder loads through .module. A sketch that imports another target or another package still needs swift run, and the error says so. OllinRun (the --installation host) and OllinLiveCoding take a package's folder too. Single-file sketches

Examples

  • Anwar Jalal Shemza joins the recreations. Examples/Recreations/AnwarJalalShemza is new. Meem is the letter he painted from 1964 to 1968, a disc for its head and a line for its tail. Roots is his last series: dyed cloth with a flower on top and its roots below as a word in Urdu. Both export SVG.
  • Hiroshi Kawano joins the recreations. Examples/Recreations/HiroshiKawano is new. Design walks a grid of five colors with a Markov chain counted off his Design 3-1 and Design 3-2. ArtificialMondrian is the series of 1969: two chains lay the black lines, and the regions they close are colored at random.
  • Zdeněk Sýkora joins the recreations. Examples/Recreations/ZdenekSykora is new. Structure is the rule he and the mathematician Jaroslav Blažek published in Leonardo in 1970 for placing half-disc elements on a grid. Lines is a score of chance numbers drawn as tangents joined by arcs. Both export SVG.
  • Eight examples for the features above. Shapes/Crossings, Patterns/TurtleWalk, Shaders/ShaderPaint, 3D/Geometry/HiddenLines, 3D/Effects/Volumes, Effects/LayerStyles, Color/Shades, and Motion/ContourWalkers.

Changed

Most of these can change what a sketch draws or sounds like, and the first and third can stop one compiling.

  • ColorVision.matrix is removed. Every kind of color vision now has two transforms rather than one. applied(toLinear:_:_:) still gives the model's result for a linear color. Accessibility
  • The color-vision simulation changed. At full severity Color.simulated(_:) and Filter.colorVision(_:) now follow Brettel, Viénot and Mollon (1997). Simulating a simulated color leaves it where it is. A lower severity moves each color that share of the way. Simulated pictures change, the tritan ones most. Accessibility
  • MarkovChain is in the core. The chain the music helpers use now lives in Ollin, so a drawing sketch can use it without the audio library. A file that imports only OllinAudio and uses the chain needs import Ollin beside it. learn(_:after:times:) takes a table of counts directly. Composition, Random
  • 2D torque takes points, like force. applyTorque takes a force in points times an arm in points, where it took the engine's newton-meters. A sketch calling it spins about ten thousand times faster at the default scale. Divide its torques by unitsPerMeter squared to keep its motion. Physics
  • The band-pass voice filter is unity at its cutoff. Resonance now only narrows the band, where the output used to grow with it. A band-pass voice at high resonance plays quieter than before. Synthesis
  • A caption draws over the finished frame. drawCaption now lands in the overlay. It stays sharp and white over a depth of field, a motion blur, a bloom, or a lens flare, and never joins an accumulating canvas. Inside a layer or a batch recording it draws in place as before. Text
  • A camera rig's framing follows its arguments. cameraShowcase, cameraControl, and cameraMove read target, radius, elevation, azimuth, and fieldOfView on their first call only, so a @Param passed in tuned nothing. A changed argument glides the shot there, and the from: forms follow. Once the viewer takes the camera, only resetCamera() and the idle return move it. Camera
  • An export's traced soft shadows are smoother and cheaper. Under temporal anti-aliasing each of the sixteen passes traced the whole ray budget, and now traces its share. The .detail tier every export uses takes 64 points on the light, where 16 showed a wide penumbra as steps. shadowSamples(_:) still sets an exact count. 3D
  • Even spacing on a surface is about three times faster. surfacePoints(on:count:) with its default .blueNoise thinning takes about a third of the time, and a debug build gains more. The points are the same for every mesh, count, and seed. Points on a surface
  • A parameter read costs what a stored property costs. A @Param holding a number, an integer, or a switch is now cheap enough to read once per vertex. A color, a vector, a palette, or a text value still reads through a lock, so copy those into a local first. Parameters

Fixed

Drawing

  • A background on the canvas leaves the layers alone. background(_:) outside a layer block used to drop the layers drawn before it. A withTarget layer or a withField seed drawn first came out empty with no error. It now clears only the canvas, and the order no longer matters. Effects
  • Exact black and exact white stay exact. The dither before the 8-bit encode left some pixels of an exact black at 1 and of an exact white at 254. Both ends are now exact in every export and on the web page. Gradients dither as before. Color output
  • The blobby cross ends at its tips. The render drew a faint spike from every tip to the edge of its quad. The spike is gone, and a blobbiness below 0.35 now draws out to its radius. Drawing
  • A traced SVG outline keeps its sharp corners. The SVG outline of a curved distance-field shape cut each sharp corner across, by about 2 px on the cut disk and the horseshoe. It now bends through the corner where the two sides meet. Export
  • Text along a path fills the glyph the plain run fills. The same letter carried 4.5% more ink under drawText(_:along:) or perGlyph: than in a plain run. The two now agree to a level. Text

3D

  • An overlay no longer loses the scene under a sky backdrop. A withOverlay block or a caption could cover every surface and keep only the sky and the block. It happened over a scene lit by environment(.sky(...)), or by an HDRI with its backdrop shown. Effects
  • A camera move starts at its start. The first frame of a cameraMove or cameraShowcase move showed it one step in, and two exports at different frame rates disagreed. Frame N now shows the move at N/fps, as time reads. Every exported frame of a sketch with a camera move shifts by one step. Camera
  • A move resumed after the hands starts from the hands. Switching from cameraControl() back to the cameraMove it left jumped the camera to where the move first started. It now departs from the current pose. Camera
  • A motion streak keeps the light of what made it. Under motionBlur() a moving thing grew brighter, and a sharp ghost of it showed inside its own streak. Both are gone. A caption drawn over the 3D scene takes the motion of the surface under it, so draw it in withOverlay { }. 3D
  • A caustic gives back the light its shadow took, and no more. A clear glass ball's caustic added half again the light its shadow removed. Caustics are now dimmer on a physically based floor, and caustics(intensity:) above 1 turns them up past physical. Caustics
  • A lamp's caustic carries the lamp's light. Under a point or spot light, a ball's caustic gave back a third of what its shadow took. It now gives back what the shadow took, and a lamp's reach thins its caustic as it thins its light. A live caustic no longer dims for its first frames. Caustics
  • A traced shadow's softness no longer follows the camera. A traced point light's penumbra changed with where the camera aimed, so it breathed through a camera move. It now holds still. 3D
  • A light's reach holds in the bounce and in the trace. Global illumination and the path tracer now read a lamp's reach: as its direct light does. A lamp lights and bounces nothing past it. 3D
  • A sun brighter than a half float arrives whole. An HDRI's sun of 200,000 was clamped at 65,504 on decode and delivered a third of its light. It now lights what its pixels say. 3D
  • The probe grid keeps its planes off a scene's faces. Global illumination put a ragged dark seam on a room's open end. The seam is gone, and a room no longer has to run past the camera to avoid it. 3D
  • A sweep's caps meet its walls point for point. So do a loft's. A straight side with several points along it no longer fills its cap with slivers. Sweeps

Sound

  • A sound export finds every instrument, on time, at the right level. An instrument held in a struct, an array, an optional, a dictionary, or the sketch's own object is found. A note no longer lands a frame late. A change of hearingDistance reaches the file, and unplace() no longer leaves a sound 6 dB down. Synthesis
  • A struck body no longer clips, and hardness colors the strike. A softer strike now reaches fewer tones, where it pushed the same tones harder. The default hardness of ModalBody, ModalBody(shape:), and StruckShape.body moves from 0.7 to 0.85. A struck instrument plays a little quieter and much cleaner, so raise its gain to keep an old balance. Synthesis
  • The struck presets strike harder. Their hardness is now 0.9 for .bell and .bar, 0.85 for .drum and .plate, and 0.8 for .glass. Every preset but .wood used to clip through its attack. The struck Voice presets (.drum, .bar, .chime, .glass) carry gain 1, within 3 dB of .pluck at the same velocity. Synthesis

The reference

  • The reference no longer promises what the code does not do. The pages on sound, color output, and physics now state the real limits. A plucked string's decay is shorter at high notes, Delay.time runs up to 2 s, and a particle's drag is taken once a step.
  • Known gaps in photoreal 3D are written down. Fourteen stand as known issues with their numbers in CAPABILITIES.md. The 3D reference no longer promises that emitters light their neighbors under global illumination, which they do in a path-traced export.

[0.14.0] - 2026-10-06

This release adds depth of field on the canvas, lines in 3D, sweeps along a path, and an overlay over the finished frame. The path-traced export gains a time budget, frames carried through a sequence, and pixels that stop once they settle. Several looks moved, the .defocus filter's most of all, so read Changed before you update.

Added

Drawing

  • An overlay over the finished frame. withOverlay { } draws its block last, after temporal anti-aliasing, the lens effects, and the postProcess filters, so a caption stays sharp and untinted. Over a noClear() canvas it never joins the pile. Effects
  • Part of an image. drawImage takes a source rectangle in the image's own pixels, so one cell of a sprite sheet draws with no cropping first. Write drawImage(sheet, x, y, width, height, sourceX, sourceY, sourceWidth, sourceHeight) or drawImage(sheet, in: box, source: cell). Images
  • A long exposure in single precision. noClear(precision: .float32) keeps the canvas in single precision, so a pile of very faint marks keeps adding where a half-float canvas levels off. Accumulation
  • Trails as the base of a combine. Feedback, Accumulator, and SimField take combined(with:_:) beside filtered(_:), so trails can be masked or displaced by another layer directly. Effects

3D

  • Depth of field on the canvas. depthOfField() blurs the finished 3D frame by its depth through the camera's lens: Camera3D.aperture, focusDistance, and apertureBlades. A highlight opens into an even disc the shape of the iris. focusRange, maxBlur, and quality tune it, and noDepthOfField() turns it off. 3D
  • Depth of field beside the other lens effects. depthOfField() runs after temporal anti-aliasing and before motion blur, so all three work together. A --path-traced export skips it, since the traced frame has already come through the lens. Path-traced export
  • Lines in 3D. drawLine and drawPolyline take Vector3 points and draw through the camera with the 2D stroke's weight, joins, and caps. Every point keeps its depth, so a solid in front hides the line. drawPolyline(_:colors:closed:) colors each point. Lines in 3D
  • Line weight in scene units, axes, and a grid. strokeWeight(0.05, in: .world) sets a weight in the scene's units, which thins a line as it recedes. drawAxes(length:) and drawGrid(size:divisions:) are built from the same lines. The example is Examples/3D/Geometry/FieldLines.
  • A path through space. Curve3D is a path, open or closed, kept as points or threaded smoothly through a few with Curve3D(curveThrough:closed:segments:). point(at:) and frame(at:) walk it by length. Its frames never twist about the path, so rotate(frame.rotation) faces a rider along it. Sweeps and strips
  • Sweeps and strips. Mesh.sweep(_:along:scale:twist:capped:) carries a Shape along a Curve3D, sized and turned along the way. Mesh.strip(between:and:colors:closed:) is the ribbon between two lines. drawSweep and drawStrip are the bare calls. Sweeps and strips
  • An even pace along a curve. Pace walks a curve written as a function at one speed, with Pace(byLengthOf:period:). Pace(byAreaBetween:and:period:) walks the strip between two such curves at one rate of area. Both keep counting periods, so a loop never jumps. Sweeps and strips
  • Instanced copies that move. drawMesh(_:instances:) inside withMotion follows every copy from last frame's place to this one's. Temporal anti-aliasing keeps each copy's edges, and motion blur streaks each along its own path. Copies placed by a compute buffer or a MeshField keep the camera's motion only. Instancing

Geometry

  • The regions a drawing encloses. regions(enclosedBy:) cuts a set of outlines where they cross and returns every patch the lines wall off as its own Shape. Circle.contour(segments:) and Rectangle.contour turn those values into outlines. The example is Examples/Shapes/ColoringBook. Geometry
  • Points in the order of a Hilbert curve. hilbertOrder(of:) and hilbertSorted(_:) sort points along a space-filling curve, so one line through a stipple stays local. hilbertIndex(of:in:level:) is one point's place on the curve. The example is Examples/Images/HilbertLine. Hilbert order

Path-traced export

  • A traced frame on a time budget. --path-traced --pt-seconds 10 gives each frame ten seconds in place of a sample count. The recipe records the count reached, so the frame reproduces from it. --pt-min is a floor the clock may not cut under. In code, PathTracing.secondsPerFrame. Path-traced export
  • A traced sequence carries its earlier frames. --path-traced 32 --pt-reuse 8 carries up to eight frames' worth of samples into each frame of a sequence or video export. A sequence at 32 samples a frame then shows the grain of 256. In code, PathTracing.reusedFrames. Path-traced export
  • A bound on bounced light. --path-traced 256 --pt-clamp 4 holds light that has bounced twice or more at four times white. A polished scene's fireflies go, and what one bounce shows is never touched. In code, PathTracing.maxBounceLight. Path-traced export
  • A traced pixel stops once it has settled. --path-traced 512 --pt-noise 0.01 lets each pixel end early once its grain falls under the figure. The count becomes the most a pixel may trace, and --pt-min N raises the least. In code, PathTracing.noiseThreshold and minSamplesPerPixel. Path-traced export

Tests

  • Light and sound are tested against physics. Thirty-two tests state what must hold whatever the code does: a shadow only takes light, and a plucked string only loses energy. Four measured gaps stand as known issues: a caustic's light, motion blur at a full shutter, the color-vision simulation, and a CMYK proof proofed twice.

Examples

  • Kazuya Sakai joins the recreations. Examples/Recreations/KazuyaSakai has Ondulaciones, after the series of 1975 and 1976: a ribbon of hard-edge bands that wraps disc after disc. RightOff, after the painting of 1973, sets horizontal bands under navy suns ruled with white rings. Both export as outlines.
  • Saloua Raouda Choucair joins the recreations. Examples/Recreations/SalouaRaoudaChoucair follows her modular sculptures. Poem cuts a block into verses that lift apart and set back, after Poem, Infinite Structure, and Poem of Nine Verses. Duals cuts a block into two parts that slide apart and lock, as in the Repetitive Dual. Poem exports with --export-usdz and Duals with --export-svg.

Changed

Each of these can change what a sketch draws or exports.

  • .defocus blurs as the canvas lens does. It now runs the same passes as depthOfField(), with focus, range, irisAngle, and catsEye as before. A near highlight opens into an even disc. The blur now grows with distance all the way to the depth map's ends, reaching maxBlur there. Every defocused layer looks different. 3D
  • An export holds a sketch that stopped its loop. After noLoop(), an export used to call draw() for every frame up to the one asked for. Now the frame the loop stopped on is the picture from then on, as in the window. A replayed take still draws every frame. Sketch
  • A closed contour's walk wraps. On a closed contour, Contour.point(at:), tangent(at:), normal(at:), and piece(from:to:) now wrap a fraction past 1 where they clamped it. point(at: 1.25) is a quarter of the way round again. An open contour still clamps. Geometry
  • A filter over a single-precision layer keeps single precision. A filter or a combine over a layer made with precision: .float32 used to write a half-float layer. A far distance field came back rounded to whole pixels. Precision now follows the layer through the chain. Effects, Measured distance fields
  • A tube's rings turn a little. Mesh.tube(along:), and the helix and torus knot built on it, now place their rings on Curve3D's frames. On the built-in helix and torus knot the rings turn by under two degrees, and the first ring starts where it did. 3D
  • A curved polished surface traces with less grain. A traced pixel now reads a curved mirror over its whole footprint. A field of small polished beads, grainy at any count before, renders at 128 samples with a quarter of the spread per sample. A flat mirror reads as before. Path-traced export
  • A scene nests four times deeper. A glTF or USD node tree reads to 256 levels, up from 64. A value nested inside a USD file keeps a limit of its own, 64 levels. Scenes
  • The frame recipe names the framework's commit. Beside git, the sketch package's commit, an exported frame's recipe carries ollin, the framework's own. Each ends in -dirty when its tree has changes. Export

Fixed

  • A tap no longer crashes after minutes of use. A video's soundtrack tap, a camera or screen frame tap, a listening hub's tap, and a custom effect's process each overflowed its stack within minutes. They now run for as long as the sketch does. Video
  • The physics solver refuses a number it cannot hold. A position, a force, or a gravity that is not a number, or is infinite, used to stop a debug build. Each is now refused, in 2D and 3D, and the world prints one note naming the call. 3D physics, 2D physics
  • The traced lens focuses where focusDistance says. The path tracer measured the focus from the near plane and blurred too widely. It now measures from the eye, as the canvas lens does. Every traced frame with an aperture changes. Path-traced export
  • A mover behind instanced copies no longer streaks through them. A withMotion mover behind a field of instanced copies wrote its motion through them, where temporal anti-aliasing and motion blur read it. Every instanced draw now hides what stands behind it. Instancing
  • A cat's-eye opening keeps a disc's light. With catsEye above zero, a .defocus disc carried only the clipped opening's share of its light, which left a step at its silhouette. The opening now changes a disc's shape and never its light. A catsEye of 0 is unchanged. 3D
  • An EXR's coverage stays at one. An opaque canvas lit by two added coats wrote an alpha of 3 into --export-exr, which a compositor reads as a pixel covered three times. The alpha channel now stops at 1, and the light stays as it summed. Export
  • An export that reads a detector repeats. A tracker's reading used to land whenever its analysis finished, so an export changed from run to run, or the detector never answered. During an export every frame a source offers is now analyzed before the sketch draws. A long TrajectoryTracker export can still find a different arc. Vision
  • A playing video feeds its trackers in an export. A playing VideoPlayer hands each new frame to its trackers during an export, where they read nothing before. --settle no longer has to wait out a model. Vision

[0.13.0] - 2026-10-02

This release adds a radius for each corner of a rectangle, a gradient that sweeps around a point, and three filters. A still sketch can redraw on demand, and a tuned parameter can be put back from the inspector. Some calls now throw and one-coordinate noise draws a new curve, so read Changed before you update.

Added

The sketch and its input

  • A still sketch that answers. redraw() draws one more frame of a sketch that has stopped looping. A noLoop() sketch can change what it shows on a click or a key and cost nothing between them. Sketch
  • Knowing an export. isExporting is true for the whole of any export and false in a window and under --bench. A sketch that spreads slow work over live frames can do all of it at once when every frame is written. Sketch
  • The pointer's shape. pointerShape(_:) gives the pointer over the canvas one of the system's shapes (PointerShape: a crosshair, open and closed hands, and nine more). hidePointer() and showPointer() take it away and bring it back, over the canvas only. Input
  • The open panel and the clipboard. chooseFiles(withExtensions:allowsMultiple:) shows the open panel without stopping the frames. The pick arrives as String paths through chosenFiles() and the filesChosen() hook. copyFrame() puts the frame the window shows on the clipboard as a PNG. Input, Recording

Drawing

  • A radius per corner. drawRect(_:cornerRadii:) rounds each corner of a rectangle by its own radius, on every anchor cornerRadius: takes and on drawRects. Write CornerRadii.top(20) for a tab, .bottom, .left, or .right for the other pairs, or name all four. Drawing
  • Four radii in a field and on paper. SDF.rect(width:height:cornerRadii:) and SDF.square(_:cornerRadii:) carry the four radii into merged fields. The dashed outline and the hollow band follow them, and the SVG and PDF exports write an arc at each rounded corner. Drawing
  • A gradient that sweeps around a point. Gradient.conic(center:startAngle:) lays a ramp once around a center, for a color wheel, a dial, or a pie. It crosses to the web page, and the vector exports write the ramp's midpoint color. An along-path fill no longer shades backwards across its seam. Color

Effects

  • Three more filters. .channelMixer(_:) runs a ColorMatrix over a layer: .gray, .gray(red:green:blue:), .swapping(.red, .blue), or a matrix built row by row. .lensDistortion(amount:quartic:center:fillsFrame:) bends a layer into a barrel or a pincushion. .cornerPin(topLeft:topRight:bottomRight:bottomLeft:) lays a layer onto four points. All three cross to the web page. Effects
  • A generator's plane as a value. ComplexPlane is the framing every picture of the complex plane shares: center in the middle, span units across the shorter side, the imaginary axis up. ComplexPlane(center:zoom:) takes a generator's zoom. Effects
  • A number marked on a generator's picture. A generator's plane hands its own framing back. plane.canvasPoint(of: c, in: bounds) marks a number on the picture, and plane.planePoint(at: mouse, in: bounds) reads the number under the pointer. Effects

3D

  • Spherical coordinates. spherical(azimuth, elevation, radius, around:) is polar in 3D, the angles first, in the camera's own orbit convention. A Vector3's azimuth and elevation read the angles back. Math
  • One mesh from several. Mesh.joined(_:) lays parts end to end as one mesh with no boolean, and placed(_:) bakes a MeshInstance placement into a part first. The result renders as its parts would under drawMesh, in one draw call. union(_:) stays the answer for a watertight print. 3D
  • Motion for a mesh that changes shape. drawMesh(_:previous:) takes last frame's vertex positions, so a ribbon rebuilt every frame or a cloth is followed vertex by vertex. temporalAntialiasing() keeps its edges refined and motionBlur() streaks it where it bent. withMotion { } still covers a mesh that moves whole. 3D
  • A surface that glows in its own colors. MeshMaterial.emissiveIntensity, set on a copy by Mesh.glowing(_:), adds the surface's own color as light, so a vertex-colored mesh glows in each vertex's hue. It adds to emissiveColor, works with no lights, and traces in a path-traced export. 3D
  • The environments on a menu. Environment conforms to ParamChoices, so @Param var surroundings = Environment.studio gives the inspector a menu of the twenty built-in environments. A .sky(...) or a built-in with lightingOnly() applied is off the menu, so apply the modifier where the sketch uses it. 3D

Geometry and simulation

  • Points inside a shape. randomPoints(in:count:) scatters points evenly over a Shape's fill, holes left out. randomPoints(along:count:) scatters them along the outline, and poissonDisk(in:radius:) is the blue-noise form kept inside the shape. All three run on the sketch's seeded random. Geometry, Blue noise
  • The metaball curve on its own. Metaballs.falloff(distanceSquared:radius:) is the bump one ball is made of: 1 at the center, a half at the radius, 0 from twice the radius out. Metaballs.Ball.value(at:) is one ball's own contribution, so a sketch can shape its own blobs. Isosurfaces

Connections

  • The pitch wheel as a parameter. MIDIInput.bindPitchBend(to:channel:travel:) drives a @Param from the wheel, the middle of its range at rest. travel: 0...1 spends the whole range on an upward bend. pitchBend(channel:) reads the wheel from -1 to 1, and unbindPitchBend(channel:) lets go. A per-note controller's bends stay in heldNotes. MIDI

Parameters and the live window

  • Putting a parameter back. A parameter tuned in the inspector goes back to the value its @Param line declares, with no reload and no setup(). Click the dot after its name, or choose Reset in the row's menu or on a group card. Reset all sits beside the save button. Parameters
  • A reset from code. Param.reset() and Sketch.resetParameters(named:) put values back, and declaredValue reads what the line gave the parameter. The remote surface has a Reset all of its own (RemoteReset on the wire). A host passes a ParamResetAction as the new reset: argument of ParametersListView(parameters:sketchName:onChange:save:reset:). Parameters

Examples

  • Alma Thomas joins the recreations. Examples/Recreations/AlmaThomas follows the paintings of 1966 to 1972, built from separate strokes of a flat brush. Rings is after Resurrection and The Eclipse. Columns is after Snoopy Sees Earth Wrapped in Sunset, Earth Sermon, Mars Dust, and Starry Night and the Astronauts. Both use strokeBrush, and --export-svg gives each stroke as an outline.

Changed

The entries under Drawing and export can stop a sketch from compiling or change what it draws.

Drawing and export

  • The headless picture calls throw. image(of:), the four contactSheet(of:) forms, plates(of:), and separations(of:) now throw an ExportError, where they answered nil and printed a line. Their values are no longer optional. if let frame = OllinApp.image(of: sketch) becomes let frame = try OllinApp.image(of: sketch), or try? for the old answer. Export
  • What the thrown error says. OllinApp.image(of:) throws kind unrendered, with the renderer's own message and an empty path, when the renderer will not start. A sweep over an undeclared parameter, an empty seed or value list, or a separation missing its inks or printing condition throws unsupported. exportWidget throws when no picture draws. Export
  • One-coordinate noise is a field of its own. noise(x), signedNoise(x), fbm(x), ridgedFbm(x), and turbulence(x) ran dead flat across some cells. They now read a one-dimensional field, as noiseField() and a formula's noise do at y 0 and z 0. The same seed gives a different curve of the same character. The two- and three-coordinate forms are untouched. Noise
  • A color outside sRGB reads the components the system gives it. A component below zero of a Color(displayP3:green:blue:) now follows the convention NSColorSpace.extendedSRGB uses. A sketch that reads such a color's components back sees new numbers. displayP3Components, Color(linear:), and linearRGB still round-trip, and a color inside sRGB is untouched. Color output

Tools and the inspector

  • A generated project says sketch. ollin new's sample name is MySketch (it was MyPiece). A widget project's one public line is Door.swift, declaring <Name>Door (it was Piece.swift and <Name>Piece). A project already generated keeps its own names. Project generator, Widget
  • Two more places say sketch. The generator's menu-bar kind is titled Menu bar strip, and the installation supervisor's log lines say "the sketch" where they said "the piece". Installation
  • The extension starter's filter is cornerShade(amount:). ollin new --kind extension --seam filter wrote a Filter.vignette(amount:) beside the built-in vignette(amount:radius:softness:), so the starter's own .vignette() call was ambiguous. It now writes cornerShade(amount:), called as .cornerShade(). A package made from the old starter can rename its function the same way. Extensions
  • The inspector's number boxes step. Shift while dragging a value box now lands on round marks at the plain speed, where it moved ten times faster. A whole number's drag speed follows its range. While you type in a box, the arrow keys step it. A whole number's minus and plus buttons repeat while held. Parameters

The Guide and the reference

  • The Guide is forty-five chapters. Four chapters split along their families. The new files are 24-Automata.md, 28-MaterialsAndSurroundings.md, 36-ThePhoneAsASensor.md, and 42-MakingItPhysical.md, and 33-DepthAndThePhone.md is now 35-Depth.md. The Guide's contents list them all.
  • Every Guide chapter from 24 on has a new number. A link to a chapter file needs the new one. Chapter 24 is now 25, 25 and 26 are 26 and 27, and 27 to 33 are 29 to 35. Chapters 34 to 38 are 37 to 41, and 39 to 41 are 43 to 45.
  • Fuller finished sketches in the Guide. Chapter 36 ends on a dancer read from the bundled film and drawn in lit solids. Chapter 40's music box swings, follows a chord progression, and writes a MIDI file. Chapter 43's live-coded set saves looks as cues. In eight chapters, the sections the finished sketch leaves out now follow it. Guide
  • The credits carry the history the Guide tells. ATTRIBUTION.md gains an entry for each chapter, naming the people, works, and dates behind its ideas with a source to read. Several chapters correct a date or a name against those sources. Attribution

Fixed

Drawing

  • A hole in a contoured field leaves the contour open. A field that returned NaN or infinity next to a contour made isolines stop the program. The line now ends at the hole's edge. Isolines
  • A stack of contour levels is fast. isolines(at: levels, ...) marched every cell again for each level. Each cell now visits only the levels that cross it. 28 levels that took 22 ms take 8.5, with the same contours. Isolines
  • A kite-and-dart tiling covers its patch. Penrose.tiles(.kitesAndDarts, in:tileEdge:) came back with bare patches through it and too few kites. Each tiling now covers its patch once, and the arcs meet across every edge. Aperiodic tilings
  • A diffusion curve holds its far side. Past the band of a two-sided drawDiffusionCurve, the region one side held alone came back as the mean of both. .diffuse now fills each side's region, and sharpness buys cycles, three at 0 and six at 1. Effects
  • Text keeps its glyphs when a font's atlas page fills. On the frame that filled the page, atlas text drawn earlier in it showed the wrong characters. A full page is now kept and a fresh one started. A retained Batch keeps its glyphs, and a web export no longer stops there.
  • The fractal generators draw the imaginary axis up. The Mandelbrot, Julia, and orbit-trap generators read it down, against the reference and the shader library's complexPlane. A Julia set with c off the real axis now draws mirrored left to right. A Mandelbrot centered off the real axis draws mirrored top to bottom.
  • An image the GPU holds reads .clear and ignores a write. A layer's image, or a compute texture's, now does what its documentation says. Its pixel subscript treated it as a picture in memory: a write was kept and read back but never drawn.

3D

  • A transparent pixel of a mark writes no depth. Under depth(at:), a circle, a rect, a glyph, an image, and a point-cloud splat wrote depth over their whole quad. The clear corners hid whatever sat behind them. A mark now hides only where its ink is. Depth compositing
  • Caustics hold still in an exported video. An export traced new photons at every frame, so the caustic light flickered in a slowly moving scene. It now traces the same photons throughout. The live window is unchanged, and a still export's caustic comes out a little different. Caustics
  • Glass shows the scene behind it at that scene's brightness. With sceneThroughGlass() on, the view through glass was dimmed by the environment's intensity and exposure. It now passes all but what the surface reflects away, so a sketch without ray tracing renders brighter through its glass.

Geometry and simulation

  • A simulation's substeps cost what their kernels cost. Every pass of a Sim.shader kernel, and every user shader, paid a large fixed cost on each draw, which --bench showed as end-to-end time. A 25-substep field that took 37 s to export 60 frames takes 2.5. Effects
  • A neighbor grid covers its bounds. With a radius that did not divide the bounds, SpatialHash left a strip along the right and the bottom empty. So did Particle Life, the Primordial Particle System, Particle Lenia, swarm chemistry, Swarm, ParticleFluid, and SoftBodies. The world is now the bounds. Compute
  • A small chance in a simulation is the chance it says. In the forest fire, the Ising model, and Schelling's board, any chance below about 5e-4 fired far too often. A seeded run of these simulations draws a different run from before. Effects
  • A forest fire takes the trees you plant. Drawing Color(white: 0.5) into a .forestFire field planted nothing, and a rect's soft rim spilled trees into the cells beside it. A mark now snaps to the nearest of the three states. A gray from about 0.54 to 0.74 plants trees as before. Effects
  • A physics snapshot keeps a body's own mass and center of mass. A body given either one, as a scene's physics:mass and physics:centerOfMass give them, came back from restore(_:) at the mass its shape makes. The snapshot now writes both, in format 6, and still reads formats 4 and 5. Physics3D
  • surfacePoints with blue noise is about three times faster. The default .blueNoise scatter returns the same points as before.

Connections

  • TUIOReceiver reads a real tracker's frame as one frame. Every frame from a tracker was taken twice: framesReceived counted double, and a lifted finger could leave early or blink out. A frame now closes on its frame number, or on the next alive list for a tracker that sends none.

The live window and tools

  • Input after a live reload reaches the sketch that is drawing. In OllinLive and OllinLiveCoding, a click, a key, a drop, or the pointer's position went to the first sketch the window loaded. A mouse-driven sketch stopped answering after its first reload.
  • The undo keys stay with the host. Command-Z and Shift-Command-Z no longer reach a sketch's keyPressed() when the host has nothing to undo.
  • --cue finds a look saved beside a live sketch. An OllinLive export given --cue <name> and no --cues reported a look saved from the inspector as missing. The export now loads Sketch.cues.json from beside the sketch, and a --cues file still wins. Cues
  • ollin examples describes every sketch in its own words. The picture grid had renamed the first sketch of each row after its neighbors. A search now also lists the sketches whose description matches, and finds a sketch by the author its header credits. The single-sketch view prints the credit.

Examples and credits

  • The MIDIFiles example starts each bar's melody on the downbeat. Every bar's figure began an eighth late, and the file ran an eighth past its eight bars.
  • The Hershey font's notice carries the credits its terms ask for. The .jhf data's terms ask two acknowledgments to travel with it, and the notices called it public domain. Both now appear as worded, in THIRD-PARTY-NOTICES.md and in the notice beside the font. Notices

[0.12.0] - 2026-09-27

A failure now says what went wrong: every export and every loader throws a named error where it stopped the program or answered nil. The release adds ollin api, a quick reference, and ten sketches in five artists' folders, and exports of GPU simulations now repeat. The new errors break source, so read Changed before you update.

Added

  • ollin api <name> says what a public name is. It prints each declaration with its comment, its file and line, the pages that document it, and the shortest examples that use it. ollin api Mesh.tube picks one type's, and ollin api Param lists a type's members. The reference offline
  • ollin api prints a declaration as its source writes it. A parameter's name carries its unit, as in rotate(_ radians: Double). ollin api Sketch prints @MainActor open class Sketch, where the API/ listing says open class Sketch. A nonisolated member keeps the word.
  • ollin api finds a name spelled nearly right. A name nothing is called lists the names spelled like it. One that is not a sketch call leads with the sketch calls spelled like it, so strokeWidth points at strokeWeight.
  • A quick reference. Docs/QuickReference.md is the framework in one read. It has the calls by area, the units and conventions, @Param, the command line, and the mistakes that draw a wrong picture with no error.
  • llms.txt at the root of the checkout. A map of the reference for an assistant helping somebody write a sketch, with every Guide chapter and reference page in one line each. Scripts/llms.sh writes it from the pages. The reference offline
  • Every example is checked to draw the same picture twice. Scripts/check-determinism.sh exports each example that runs on its own, twice under one --seed in two processes, and compares the pixels. Scripts/preflight.sh --milestone runs it. Why a run repeats lists what reaches past a seed, such as the order a Set walks.
  • A second visit to Monir Shahroudy Farmanfarmaian. Examples/Recreations/MonirFarmanfarmaian gains Geometric, after the felt-tip Geometric drawings on a grid of triangles (2013 and 2014), and Convertible, after the Convertibles (2010 to 2016). The second cuts each polygon into kites and moves them between every way they can hang.
  • A second visit to Vicente Rojo. Examples/Recreations/VicenteRojo gains Senales, after the Señales (1966-1972), where each sign is painted over the last. PiramidesYVolcanes, after the Pirámides y volcanes and Prosa del Popocatépetl (2003), lays a stepped pyramid and lets lava break out of its steps.
  • A second visit to Vladimir Bonačić. Examples/Recreations/VladimirBonacic gains GFE164, his Dynamic Object GF.E (16,4) (1969 to 1971), built from the appendix of his 1974 article. Random63 is Random 63 (1969) beside a panel of the same bulbs driven by a field. With sendsToWall on, both panels go out over sACN through an LEDMap.
  • A second visit to Osamu Sato. Examples/Recreations/OsamuSato gains two sketches from The Art of Computer Designing (1993). StraightLines draws an eye inside a hatched word with nothing but straight lines, and word sets the word. TotemBuilder deals a monster made of circles for each seed, and --export-grid proofs a pile of them.
  • Waldemar Cordeiro joins the recreations. Examples/Recreations/WaldemarCordeiro is the first recreation that reads a photograph. Derivadas, after Derivadas de uma imagem (1969, with Giorgio Moscati), prints a photograph as characters and takes its derivative three times. Gente, after Gente (1972-1973), prints a crowd at four degrees of contrast.

Changed

Each of these can stop a sketch from compiling or break a link.

  • Every export throws an ExportError when it cannot finish. A refused frame, a missing folder, or an unknown file extension used to end the program with a fatalError. Each export call on OllinApp now throws, naming the file, the frame it reached, and what went wrong. OllinApp.exportVideo(sketch, …) becomes try OllinApp.exportVideo(sketch, …). Export
  • An ExportError says which of three things happened. Its kind is unsupported (the request could not be met), unrendered (a frame did not draw), or unwritable (the file would not take it). Asking for zero frames is now unsupported. A clip stopped partway is removed, and a failed export flag exits with status 1.
  • The export calls that now throw. export, exportSequence, exportVideo, exportGIF, exportSpatialVideo, exportEXR, exportSVG, exportPDF, exportDXF, exportGCode, exportEmbroidery, exportSpatial, exportWeb, exportSeparations, exportPlates, and the four exportContactSheet forms. exportHEIC throws where it answered nil, and its StillExport is no longer optional. exportWidget throws where it printed.
  • Every loader throws a FileError when a file will not load. A missing file and a file in the wrong format both came back as nil. Now missing is a path that is not there and unreadable is bytes that are not the format. loadImage("photo.jpg")! becomes try! loadImage("photo.jpg"). Sketch
  • The sketch loaders that now throw. loadImage, loadMesh, loadScene, loadSVG, loadPalette, loadTable, and loadJSON are throws -> T where they were -> T?. Palette.palettes and loadPalettes throw where they returned []. if let photo = loadImage(path) becomes if let photo = try? loadImage(path). A name lookup such as OutlineFont(name:) still answers nil.
  • The initializers that now throw. Each init? is now init … throws. That covers the file, data, text, and resource initializers of Image, Mesh (with objSource:), Scene, SVG, Palette, Table, and JSON. It also covers IESProfile (with string:), ICCProfile, OutlineFont, BitmapFont (the bdf, fnt, and resource: forms), and StrokeFont (the jhf and resource: forms).
  • Compute kernels, phone references, and writers throw too. ComputeKernel(entry:resource:withExtension:in:) and ComputeKernel(entry:contentsOf:) throw, as do PhoneReference.picture(path:…), picture(resource:…), object(path:…), and object(resource:…). Mesh.write(to:), Scene.write(to:), saveMesh, and saveScene throw an unwritable error where they returned false. IESProfile no longer prints on a refusal.
  • The Guide is forty-one chapters in seven parts. Nine chapters grew out of the longest ones, so every chapter after 15 has a new number. A link to a chapter file needs the new one. The Guide's contents list them all.
  • Where each Guide chapter went. 16 is now 19, and 17 is 18. 18 to 26 are 22 to 30. 27 is 33, 28 is 34 (34-Listening.md), 29 is 36, and 30 is 32. 31 is 38 (38-FinishingASketch.md), and 32 is 41.

Fixed

Drawing and effects

  • A frame with millions of marks in one pass draws them. A LineSpray past about ten million points a frame, or any pass with that many particles, drew nothing and said nothing. A frame the GPU refuses for any reason now says so on standard error. Depth of field from light
  • Glyph-atlas text no longer crashes when it fills the atlas. Under textMode(.atlas), text with more distinct characters than a page holds stopped the sketch: a long run of Chinese or Japanese, say. Text
  • Atlas text set a character at a time is one draw call. Under textMode(.atlas), every drawText cost a draw call of its own, live and in a replayed Batch. Calls in a row with the same font, blend, and target now share one. Text
  • A glow or blur radius under a pixel is noted. The radius of .bloom, .halation, and .gaussianBlur is a pixel count, so radius: 0.012 spreads nothing. A sketch that writes one is told once, from postProcess or filtered. DynamicObject, NamaFrieze, LensFlare, and SceneExplorer now give theirs in pixels. Effects
  • A feedback layer, an accumulator, or a simulation field is freed when the sketch lets go of it. None ever was, so a sketch that made one in setup() lost it on every live reload. Effects
  • An inline compute kernel no longer rebuilds its source on every dispatch. An Accumulator, a particle system, and a simulation each paid for it, about a fifth of a small frame. Compute

3D and simulation

  • A chaotic GPU simulation exports the same frames under one seed. Two exports drifted apart within seconds: Particle Life, the Primordial Particle System, Particle Lenia, swarm chemistry, Swarm, ParticleFluid, SoftBodies, and any kernel over a SpatialHash. An export or a take playing back now repeats on the same machine. A live window keeps the faster order. Artificial life
  • Caustics export the same pixels every time. Two renders of one frame could differ by a level or two in a few dozen pixels. Caustics
  • A MeshField exports the same pixels every time. Where two copies met at exactly the same depth, either could win. An export now draws the copies in the order they were placed. A live frame keeps the faster gather. Instancing
  • A sea state that changes every frame no longer grows a cache every frame. An ocean whose wind or height follows the clock used more memory for as long as it ran. The path-traced export's environment tables are bounded the same way. The ocean

Files

  • A file you are handed can no longer end the sketch that reads it. Every file reader now checks a count the file declares against the bytes the file holds, before any memory is set aside. An input nested past a reader's limit is refused or read to the limit.
  • A look, a palette, or an SVG with bad numbers. A .cube look declaring a 256-node cube no longer sets aside 265 MB. An ASE palette swatch whose numbers are not numbers is skipped, and Color(hue:) reads such a hue as red. An SVG arc or transform past what a Double holds draws a line.
  • A damaged glTF or USD scene is refused. glTF accessors with negative indices, overflowing offsets, or triangles naming missing vertices are refused or dropped. USD text with an integer past 64 bits, a crate declaring more than its bytes hold, and a negative face count are refused.
  • A damaged PLY or STL no longer crashes. A PLY whose faces name missing vertices, and a binary STL whose triangle count its size cannot hold, used to crash Model I/O.
  • A damaged sound file or physics snapshot is refused. The audio loaders refuse a sample rate no sound plays at. SFZ keys, tunings, levels, and loop points are held to the format's ranges. Physics snapshots refuse numbers a world does not hold and indices naming nothing.
  • Two numbers past their range read safely. JSON's int reads nil for a number no Int holds, and noise() at a coordinate past 2^63 no longer traps.
  • New limits on nesting. A glTF or USD scene nests at most 64 levels deep. A formula is at most 1,024 numbers, names, and signs, nested at most 64 deep. A scene at the limit loads on a background thread, and Scene.bounds reads there too. Scenes
  • An audio file that declares tens of thousands of channels is refused. A damaged WAV claiming 32,768 channels stopped the process on macOS 26. Every audio loader now refuses a file past 1,024 channels, with .couldNotDecode from AudioPlayer. Audio
  • An SFZ map written in Latin-1 loads. SampledInstrument(contentsOf:) threw .couldNotDecode for a map that is not UTF-8, which is how older libraries spell an accented sample name. Synthesis

Export and output

  • --photo keeps every camera closed. A sketch that started a Camera itself opened this machine's camera even under the flag, which reached only Camera.orStill. Camera.start() now throws under --photo. LiveSurface, LiveEnvironment, DepthCloud, and BarcodeReader take a bundled picture there. Vision
  • --skip builds a picture that carries from frame to frame. The warmup ran draw() but rendered only a noClear canvas. A Feedback pile, an Accumulator, a LineSpray's running mean, or a simulation field started the first written frame empty. That frame now matches a run from zero. Export
  • Every tile of a contact sheet draws its feedback layer. In --export-grid and --export-sweep, a sketch with a Feedback layer drew its first two tiles and left the rest black. Variations
  • --param wins over --cue. A value given by hand beside a cue was overwritten by the cue's. The cue now lands first, and before setup(), so what setup() builds from a parameter reads the cue's value. Cues

Parameters and the live window

  • Typing a number into an inspector box does what you typed. The box clamped each key as it arrived, so "300" in a box from 50 to 500 came out as 500. The text is now yours until Return, Tab, or a click away commits it. Escape puts the starting value back. Parameters
  • Inspector values are plain and round. A box shows a value's own digits with no trailing zeros or thousands separator (175, 0.004, 25000). A slider, scrub, or pad drag lands on round values (2.4, not 2.4027931415929205), which is also what Save writes.
  • A sketch window opened while the display is asleep draws once the display wakes. A window that came up with the lid closed and the monitor asleep stayed blank for good.

Tools and examples

  • ollin docs, ollin examples, and ollin api answer in a tenth of a second. Each lookup went through swift run, which took about four seconds and waited out any build already running. The reference offline
  • An example's page shows one piece in its clip and in its picture. A sketch that rolls its variation played one piece under a poster of another, on 85 pages. Eight examples have media for the first time, among them Audio/Expression, Soundsuit, and Shapes/Watercolor. Examples

[0.11.0] - 2026-09-23

The lens flare is now followed ray by ray through real glass, and Kuramoto oscillators couple over a lattice or a graph. Five artists' folders gain ten recreation sketches. Loaders now throw where they returned nil, devices say why they are unavailable, and every flare looks different, so read Changed before you update.

Added

Simulation and 3D

  • Kuramoto oscillators on a lattice or a graph. Kuramoto(columns:rows:layout:wraps:) lays a crowd on a .square(.vonNeumann), .square(.moore), or .hex lattice, coupled within range rings, with wraps for a torus. The hex lattice shares HexGrid's addressing. Kuramoto(neighbors:) and the settable neighbors couple a crowd over any graph. Oscillators
  • A map of where a crowd has locked. localCoherence is the order parameter over each oscillator's own neighborhood. A crowd can hold several layers per site, pulled together by layerCoupling, and rates is every oscillator's rate at the last substep. The Simulation/Kuramoto example gains a honeycomb field. Oscillators
  • A second lens, and wear on the iris. Lens.doubleGauss is a 1950s six-element double Gauss whose twenty ghosts make the chain a flare is known for. LensFlare.wear is wear on the opening: it frays the star's arms and fills the space between them with fine needles. Lens flare
  • A streak, dirt, and a halo on a flare. LensFlare.streak (with streakLength, streakAngle, streakTint) is the long line an anamorphic lens throws. LensFlare.dirt is grime on the front element, and LensFlare.halo (with haloSize) is a rainbow ring around a light. All three are off until asked for. Lens flare
  • An anamorphic front group. Lens.anamorphic(squeeze:) stretches the ghosts, the star, and the halo sideways by the squeeze. The streak stays a line and the dirt keeps its shape. Lens flare

Examples

  • Mohamed Melehi joins the recreations. Examples/Recreations/MohamedMelehi is after his hard-edge wave paintings of the 1970s. Waves is a ribbon of flat bands that breaks into a traveling wave, and Flamme stands the wave up as one flame. Both export every band as a closed outline.
  • Nasreen Mohamedi joins the recreations. Examples/Recreations/NasreenMohamedi is after her untitled ink and graphite drawings. Registers rules runs of fine lines that gather against one heavy line and open toward the next. Diagonals floats chevrons that thin to their tips among hairlines. Both export for a pen.
  • A second visit to Gego. Examples/Recreations/Gego gains two sketches. Tejedura, after the Tejeduras (1988 to 1991), weaves strips of a print of one of her nets with strips of foil. Chorro, after the Chorros (1970 to 1971), hangs falls of rods hooked end to end.
  • A second visit to Hassan Sharif. Examples/Recreations/HassanSharif gains two sketches. OctoberLines, after 10th to 13th October No. 1 & No. 2 (1984), sums the numbers a wavy line cuts from a table and rules each sum as a band of lines. BodyAndSquares, after the 1983 performance, lays a body across five squares picked by chance.
  • A second visit to Manuel Felguérez. Examples/Recreations/ManuelFelguerez gains two sketches. EspacioMultiple, after El espacio múltiple (1973), carries one form through a flat painting, a relief, and a standing piece, and --export-svg gives its plan. RelieveLacado raises a MaquinaEstetica design in lacquered layers under a circling key light.

Changed

Each of these can stop a sketch from compiling or change what it draws. A call that now throws keeps its old shape with try?.

3D

  • The lens flare is followed ray by ray. Each ghost is now a grid of real rays carried through the lens's spherical surfaces, stretched and cut by the barrel as glass makes it. A bright ghost is followed in seven wavelengths (LensInterface.abbeNumber). It costs one to five milliseconds a frame at 1080 square on an M2. Lens flare
  • A bare lensFlare() uses another lens. With no lens named it uses Lens.standard, the double Gauss multicoated at f/8, where it used the Heliar wide open. Name .heliar to keep it. LensFlare.sourceSize now sets how soft every ghost is, and defaults to 0.015 (was 0.035). Lens flare
  • A flare's brightness follows the iris. The level is set once per lens, where it was set each frame off the hottest ghost. Closing the iris brightens the ghosts it shrinks and dims the star's arms as it lengthens them. multicoated() hands its wavelengths out differently, so each ghost's color changes. Lens flare

Sound

  • Sound loaders throw. ImpulseResponse.load(_:), .resource(_:withExtension:in:), and init(contentsOf:), GrainSource(named:withExtension:in:) and (contentsOf:), and SampledInstrument(sfz:in:) and (contentsOf:) throw AudioError where they returned nil. Its cases are resourceNotFound, couldNotDecode, and the new empty. Synthesis
  • An audio engine that will not start says why. Synth, Tone, and AudioPlayer gain unavailableReason, cleared by the next start that succeeds, where Synth.start() printed and Tone.play() and AudioPlayer.play() said nothing. AudioInput.start() still throws for what it can see, and writes unavailableReason for a refused microphone. Audio

Vision and capture

  • A video that cannot open says so. VideoPlayer(url:) throws VideoError.fileNotFound for a missing file, as the path: and resource: forms already did. A file that opens but is not a movie says so in the new VideoPlayer.unavailableReason. Video
  • Record3DRecording.pose(at:) throws outside the recording. It throws frameOutOfRange, as frame(at:) does, and is nil only for a frame with no recorded pose. Record3D
  • Vision has one error type. The five Error enums nested in ModelTracker, PointSegmenter, ConceptTracker, DepthTracker, and DepthClip are one VisionError, with unavailable and the new failed. A catch naming an old type names VisionError now. Vision
  • Two detectors return a value or throw. PersonSegmenter.detect(in:quality:) and SaliencyTracker.detect(in:mode:) no longer return an Optional. They throw VisionError.failed when a matte or heat map cannot be converted. SubjectSegmenter.detect(in:) is nil only when no subject is found, and a depth model that answers no map says so in unavailableReason. Vision

Physics

  • Physics snapshots throw. PhysicsSnapshot(data:) and (resource:withExtension:in:) throw PhysicsSnapshot.Failure (unreadable, or the new resourceNotFound) where they returned nil. World3D.restore(_:) throws unreadable where it printed, and World3D.load(contentsOf:) throws where it returned false. 3D physics
  • A 3D body that cannot be built throws. World3D.addVehicle, addRagdoll(from:), addSoftBody(from:), addRope(through:), and addTensegrity(_:) throw the new PhysicsError.unbuildable where they returned nil and printed. Its text says what was needed. 3D physics

Connections

  • A serial port says what it is waiting on. SerialPort and FirmataBoard gain lastError, the sentence open() is waiting on. It names a missing device, a port another program holds, or a device that went away, and clears when the port opens. These were one silent state behind isOpen. Serial
  • A Syphon client and a Link clock say why they are unavailable. SyphonClient gains unavailableReason for a source that was not there, a refused connection, or a source that has gone away. LinkClock gains interfaceCount and unavailableReason for a clock that could open no network interface. Syphon, Link
  • An OSCQuery server and the remote inspector start again. OSCQueryServer and RemoteInspector gain isRunning, unavailableReason, and a start() that serves again after stop() or tries a held port again. RemoteInspector.stop() no longer leaves boundPort set. OSCQuery, Remote
  • A number that does not fit reads as nil. OSCArgument.int, MQTTMessage.int and int(named:), RoomMessage.int, and a table's int(_:) now return nil for a number that is not finite or too large for an Int. They used to trap. A parameter restored from a stored .number that large keeps its value. OSC, MQTT, Room
  • VirtualCameraError is internal. No public call ever produced it. VirtualCameraServer.unavailableReason already carried its sentences.

Fixed

  • The lens flare's ghosts sit where glass puts them. Every ghost was misplaced and missized, most of them on the light's own side of the frame. Expect a different flare, with ghosts on both sides of the center. The ghost polygons also line up with the star's arms, where they turned with starSize. Lens flare
  • A still counts its frame at the rate --fps names. --export, --export-exr, --export-plates, and the vector exports read --frame and never --fps. So --frame 30 --fps 10 drew at half a second where it meant three seconds. Every one-frame export now reads both flags. Export
  • A --param value is there when setup() runs. It landed only after setup(), so a count built there read the declared default. It is now applied before setup() and again after it. A canvasSize that picks its size by a parameter exports and opens at the run's size. Parameters
  • An extension's afterFrame fires in an export. The headless runs never called it, so FrameInfo.profile could be read from a window and never from an export. It now fires once per rendered frame. Profiling
  • A stranger's packet no longer ends the sketch. A malformed message could crash a sketch reading Firmata, OSC, MQTT, a room, OSCQuery, the remote page, a WebSocket, Link, or the phone's maps. So could a table cell reading 1e300, through int. Each is now refused, ignored, or read as nil. The test suite
  • A line spray whose scene changes size no longer stalls. Under .byLength sampling, lines that stretch made the spray remake its particles every frame, enough at six million points to stall the desktop. The particles are now kept and only grown. Depth of field from light
  • The aesthetic machine weighs a quarter disk at its true center. MaquinaEstetica placed a wedge's weight off center, and drew its quarter ring with a straight inner edge. Both are fixed, and the sheets a seed produces change wherever a wedge or a ring appears.
  • The accumulation page says where a long sum stops. A faint sample on a noClear canvas stops counting under about a thousandth of what the pixel holds, so a long exposure stops brightening. The page now says so and sends a long sum to makeFeedback(precision: .float32). Accumulation

[0.10.0] - 2026-09-19

An outline can now answer questions about itself, and one frame can hold several lighting rigs. The depth-of-field aperture has a shape, and a sketch reads and writes MIDI files. A second naming pass moved about thirty names in the satellite modules, so read Changed before you update.

Added

Drawing

  • An outline answers questions about itself. A Contour says which way it runs at a fraction along it (tangent(at:), normal(at:)) and where it passes nearest a point (nearestPoint(to:), fraction(of:), distance(to:)). piece(from:to:) hands back the stretch between two fractions. Geometry
  • Crossings, and corners rounded or cut. crossings(with:) and crossings() find where a Contour meets another outline or itself. simplified(tolerance:) thins a dense trace, rounded(_:) and chamfered(_:) work its corners (on Shape too), and reversed() walks it backward. Examples/Shapes/OverUnder weaves a tangled loop through its own crossings. Geometry
  • Outlines, shapes, and grids read as collections. A Contour is its points, a Shape its contours, a Grid, HexGrid, or TriangleGrid its cells, and a Polyomino its squares. Each takes for point in contour, grid.count, piece.contains(cell), shape.first, map, filter, and randomElement(using:). points, contours, and cells still return arrays. Geometry
  • Contour gains a geometric contains(_ point:). It answers the question Shape.contains(_:) answers. For vertex membership, ask contour.points.contains(p). Geometry
  • The depth-of-field aperture has a shape. Bokeh.aperture decides what a point far from focus turns into. It is .round as before, .blades(6) for the hexagon a real iris draws, .blades(count:rotation:) to turn it, or .picture(_:) for a mask from any Image. Depth of field
  • Surfaces in the depth-of-field spray. SprayQuad puts a face in a LineSpray scene beside its wires, set through setQuads(_:). A quad's light is the whole quad's. LineSpray.picture is an image the quads read through each quad's pictureBounds, so a photograph becomes an object made of light. Depth of field

3D

  • One frame, several lighting rigs. withLights([...]) { } lights a block from its own fixtures, and withLights(.noir) { } from a preset. withoutLights { } draws a body flat in its fill color. addLight(_:) adds one Light to the frame's own rig. Lamps set the ordinary way behave as before. 3D

Sound and MIDI

  • MIDI files in and out. MIDIFile in OllinAudio reads a Standard MIDI File into notes a sketch can play or draw, and writes one back out. It reads formats 0, 1, and 2, with the tempo map through beats(at:) and seconds(at:). A Synth writes down what it plays between startRecording(tempo:name:) and stopRecording(). MIDI files
  • Timecode compares. Timecode is Comparable, so a cue test is < and a cue window is a range: if (cueIn..<cueOut).contains(now). The order runs on the moment a timecode names, so two counted at different rates still compare. MIDI

The Guide

  • Coming from openFrameworks or OPENRNDR. The Guide's new Appendix E covers the big moves from either one, each as a pair of code followed by what is different. Appendix C stays the call-by-call map for p5.js and Processing. Appendix E

Examples

  • A black hole. Examples/Shaders/BlackHole traces light backward past a Schwarzschild horizon, so the shadow and a star seen as a ring fall out of the physics. The disk shines at the temperature Page and Thorne's flux gives it, shifted blue and red by its motion as Luminet drew it in 1979. It plays on the web page too.
  • A homage after Gego. Examples/Recreations/Gego has two sketches. Reticularea hangs a net of irregular triangles from the ceiling and lets gravity fold it, drawn as 2D lines through project. DrawingWithoutPaper hangs a bent wire lattice off a wall, and its shadow is the drawing. Drag a wire in either one.
  • A homage after Vladimir Bonačić. Examples/Recreations/VladimirBonacic rebuilds two lamp objects he made in Zagreb between 1969 and 1971, driven by the arithmetic of Galois fields. DynamicObject is the 32 by 32 square of GF.E 32-S, and NamaFrieze is the eighteen-panel frieze DIN. PR 18. Set sendsToWall and the panels go out over sACN.

Changed

Each of these can stop a sketch from compiling. The second naming pass renamed calls whose names said something other than what they do.

  • Renamed in synthesis. Synth.hearingRange is now hearingDistance, Wavetable.length is samplesPerCycle, and Compressor.makeup is makeupGain. Equalizer.lowEdge / highEdge are lowFrequency / highFrequency beside midFrequency, and GrainCloud.scatter is timingJitter beside positionJitter and pitchSpread. Patch.modulated(by:index:) takes amount:.
  • Renamed in listening. AudioAnalyzer.process(_:) is now analyze(_:), SpeechListener.captionWords is maxCaptionWords, and Sonification.levels is levelRange. DetectedPitch.note is nearestPitch, the rounded twin of pitch, since Note is another type. AudioAnalyzer.note and AudioSource.note follow it.
  • Renamed in vision. The [Classification] lists called labels on ImageClassifier, ConceptTracker, ModelTracker, and ModelOutput are now classifications. ConceptTracker.confidence(of:) is share(of:), PointSegmenter.Pick.score is confidence, and the segmenter's isWorking is isPicking. TrajectoryTracker(trajectoryLength:) takes minObservationCount:, and ContourDetector.contrastAdjustment is contrastFactor.
  • Renamed in physics. World.pixelsPerMeter is now unitsPerMeter, matching World3D. Rope3D's thickness is radius, so World3D.addRope takes radius:. Wheel3D.spin is rollAngle beside steerAngle, with spinRate the rate. Character3D.move(_:) is walk(at:), and dragSoftGrab / releaseSoftGrab are dragSoftGrip / releaseSoftGrip, after the SoftGrip they take.
  • Renamed in screen capture, Bluetooth, haptics, and controllers. ScreenSource.window(title:) is now window(matching:), and BluetoothDevice(named:) is BluetoothDevice(matching:). BluetoothReading.isOn is bool, BluetoothCharacteristic.standard(for:) is known(for:), HapticEvent.strength(at:) is intensity(at:), and controllerMotion(_:) is controllersReportMotion(_:).
  • Renamed in Firmata, MQTT, laser, and timecode. FirmataBoard.setSamplingInterval(_ milliseconds: Int) is now sampleEvery(_ seconds: Double). MQTTTopic.isValid(_:) is isValidFilter(_:), LaserSafety.stationaryLimit is maxStationaryPoints, and LaserProjector.isConnected is isPlaying. Timecode.advanced(by:) is advanced(byFrames:), since advance(by:) means seconds everywhere else.
  • Renamed in the room and the phone. Room.name is now peerName, since it named this machine, and Room.problem is lastError. PhoneState.status is statusMessage, and PhoneBody.isJointTracked(_:) is isObserved(_:): it answers whether the camera saw the joint.
  • One shape per kind of failure. A failure a call can see throws, one that happens later is readable afterwards as a sentence, and nil means a value is absent. MQTTClient.lastError now clears when the line comes back up, and EtherDreamFinder.start() throws StartError.badPort where it returned in silence.
  • A camera says why it has no frame. Camera gains unavailableReason for a refused permission prompt or a failure after it, where frame stayed nil with no reason. start() still throws for what it can see itself. Record3DRecording(url:) reports a missing file as Record3DError.fileNotFound, as its path twin already did.

Fixed

  • Building a physics world while another is torn down no longer ends the process. Two threads could claim the same slot in the rigid solver's table. A sketch builds its world on the main thread and never met this.
  • The compose reference names its modifiers right. Docs/Drawing/Effects.md listed a layer's blend and resolution modifiers as .blend(_:) and .scale(_:). They are .blended(_:) and .scaled(_:), as its own example wrote them. Effects

[0.9.0] - 2026-09-18

This release shows a running sketch on the phone's screen and lets you write a GPU simulation of your own. It adds complex numbers in Swift and in shaders. A GIF is now written to its file frame by frame. SprayLine stores its light differently, so read Changed before you update.

Added

Drawing and math

  • A color named by its light. Color(linear:green:blue:) takes linear numbers, the ones a lighting calculation ends with. linearRGB reads a color back as light in Double. The curves between them, Color.srgbToLinear and Color.linearToSrgb, are public now. Color
  • A SprayLine takes its light as light. SprayLine(from:to:light:endLight:) carries linear RGB radiance per pass. A scene that shades in linear units hands its numbers over unchanged. Depth of field from light
  • Complex numbers. Complex is a point of the plane that multiplies. Write Complex(1, 2), 1 + 2 * .i, the polar Complex(magnitude:argument:), or .unit(angle) to turn by an angle. It has magnitude, argument, conjugate, and reciprocal. Vector2(z) and Complex(v) cross to the canvas and back. Complex
  • Functions of a complex number. Complex.exp, .log, .pow, .sqrt, .sin, .cos, .tan, and the hyperbolic three work on the principal branch. Complex is a Numeric value, so let c: Complex = 3 works, 2 * z doubles, and an array sums under reduce(0, +). Complex
  • Complex arithmetic in a shader. The shader library gains a complex module with the same arithmetic on a float2: cmul, cdiv, cexp, clog, cpow, csqrt, csin, ccos, and the rest. complexPlane reads a layer as the plane. domainColor paints a value as the domain-coloring generator does. Shader library
  • Curl noise in space. curlNoise(x, y, z) and curlNoise(_ p: Vector3) give a flow that swirls in every direction and never gathers or drains. A curl now costs about three reads of noise, and the shader library has the matching float3 curlNoise(float3). The Rendering/LineSpray example bends its rings with it. Noise
  • The noise fields as a value. noiseFields is the sketch's family of fields as one NoiseFields value, seeded as the sketch is, with every noise, fbm, curlNoise, simplexNoise, and worley form. It can be handed to every core, as under DispatchQueue.concurrentPerform. noiseSeed still reaches it, and NoiseFields(seed:) makes one anywhere. Noise

Simulation

  • A simulation of your own. Sim.shader(_:inject:substeps:rest:) runs a Metal kernel you write over a SimField in place of a built-in rule. shade(uv, info) returns a cell's next state from cell(info), cell(info, dx, dy), sampleRaw(info, p), and the field's extra inputs, read as input(info, i). The Simulation/Wind example uses it. Effects
  • A drawn mark enters the field by your rule. An optional inject: kernel reads mark(info) and decides how a drawn mark enters the field. A circle or a line drawn in withField is then that shape, stepped by your rule. Effects
  • A field with walls, and a field that counts. Every field has an edge, a FieldEdge: .wrapping (the torus it always was), .clamped walls, or one axis of each. The twelve neighbor-reading sims honor it too. A field also has a precision, with .float32 for a state that counts. Effects
  • A field read back, and drawn as arrows. SimField.snapshot() reads the field back as a FieldSnapshot. Filter.arrows(spacing:scale:color:width:) draws any two-channel layer as arrows. Effects

Output

  • The phone as the sketch's screen. device.show(self) keeps a sketch running on the Mac and shows its frames full screen on Ollin Capture, in a new Sketch mode. Nothing is installed on the phone, so a live edit reaches it once the Mac has compiled. Rebuild the capture app to get the mode. Phone
  • A finger on the phone is the sketch's pointer. While the phone shows a sketch, the first finger drives mouseX, mouseY, mouseIsPressed, and pressure. Every finger still arrives on device.touches. PhoneScreen reports isShowing and lets go of the pointer with drivesPointer. Examples/3D/Phone/PhoneCanvas paints with a finger.
  • A GIF is written as it is drawn. --export-gif and --export-loop put each frame into the file as it is rendered, so a long loop costs the memory of one frame. The frames share one table of colors. --gif-palette per-frame (palette: .perFrame on exportGIF) chooses one for every frame. Export
  • A GIF writer a sketch can drive. GIFWriter takes images of your own from a sketch or an extension. Call GIFWriter(path:width:height:), append(_:delay:), and finish(), with palette: and loops: beside them. Export

Tools and the reference

  • The API diff reads as a version. Scripts/api-diff.sh compares the public listings under API/ with the last tag. It names every line added, removed, renamed, changed, or deprecated, and the bump the next release needs. --changelog prints the skeleton of a changelog entry. API/README.md
  • Every public name has a place in the reference. 1,198 names no page mentioned are written up. Among them are the Mesh generators (.klein, .lathe, .mobius, .superellipsoid), Material's rimColor, rimSharpness, and subsurfaceColor, StrokeFont's metrics, Installation's schedule, Take.Event, FrameProfile, ScanGraph.Settings, SwarmChemistry.Recipe, MPEZone, Controller.dpad, and every satellite's error type.

Examples

  • Monir Shahroudy Farmanfarmaian joins the recreations. Examples/Recreations/MonirFarmanfarmaian has MirrorFamily, a relief of small mirror triangles under a moving lamp, with ray-traced reflections in every facet. BehindGlass, after her Mazes, paints a pane of spiral channels from behind, silver last, then turns it over.
  • Owen Schuh joins the recreations. Examples/Recreations/OwenSchuh reads two leaves of a 2022 notebook spread, where a digit is painted as a color. CountingTheRationals weaves the table of fractions and walks its diagonals, so one walk reaches every cell. DiagonalArgument builds the number that is on no line of a list.
  • Hassan Sharif joins the recreations. Examples/Recreations/HassanSharif reads two of his semi-systems. DotsLinesForms makes the 1984 sheet again from new numbers, as dots, as lines, and as squares. AngularLines fills a sheet with lines through six numbered crossings and paints one as a black band on red, after his Six Points Angular Lines.
  • Three examples on the complex plane. Examples/Shaders/ComplexPlane colors the ratio of two moving points in a shader and lays that ratio's circles over it from draw(). ImaginaryLog paints the imaginary part of the ratio's logarithm. Meromorphic builds a ratio of two cubics from six moving roots.

Changed

  • SprayLine stores light. Its color, endColor, intensity, and endIntensity properties are gone. light and endLight hold the linear RGB radiance they used to be multiplied into. The color:intensity: initializer is unchanged, so a line written that way builds as before and draws the same pixels.
  • LineSpray.setLines keeps its average when nothing moved. Handing it the lines it already has leaves the running average alone. A sketch that rebuilds its scene each draw now converges under --settle, and moved lines restart it as before. Depth of field from light

Fixed

  • A phone that leaves mid-write no longer ends the sketch. Pulling the cable or closing the app during a write could end the whole process. That write now fails, and the connection recovers as it does from any drop.
  • The Vision page spells minSize: right. The RectangleDetector initializer's size argument is minSize:. The page had it as minimumSize:.

[0.8.0] - 2026-09-16

This release adds a crowd that walks through itself, sound cut into grains, and a sketch as a desktop widget. A light can have a reach, and a frame can carry up to 256 of them. OllinLiveCoding can take an edit without starting the piece over. A naming pass renamed a number of calls, so read Changed before you update.

Added

Drawing

  • A canvas in the photographic 3:4. .photo1080 is 1080 by 1440, and .photo1080.landscape is the 4:3 form at 1440 by 1080. It sits beside .portrait1080, the slightly taller 4:5 crop, and the project generator offers it too. Canvas
  • Your seed reaches the standard library's dice. randomness is the sketch's own generator, the stream random() draws from. Hand it to any call that takes using: and that call follows your seed: colors.randomElement(using: &randomness), points.shuffled(using: &randomness), Int.random(in: 1 ... 6, using: &randomness). Seed it with randomSeed or seed as before. Random
  • The seedable generators follow the sketch. WaveFunctionCollapse.solve, LSystem.expanded, ShapeGrammar.run, and WangTiles.fill take randomness, so they follow the sketch's variation and need no generator of their own. Random
  • A palette reads as the collection it is. for color in palette, palette.enumerated(), map, first, isEmpty, reversed(), Array(palette), and palette.randomElement(using: &randomness) all work, with no .colors in the way. The wrapping palette[i] is unchanged and read-only, so a change still goes through colors. Color
  • Vector2 and Vector3 share one Vector protocol. length, normalized, distance(to:), lerp(to:_:), limited(to:), projected(onto:), with(x:), the arithmetic, and the constants are written once for both. A helper written against Vector takes either kind of point, centroid averages either, and a type of your own can conform. No call or number changed. Geometry
  • Each vector type keeps what does not carry over. cross is a Double in the plane and a Vector3 in space. Vector2 keeps angle, perpendicular, the signed angle(to:), and rotated(by:). Vector3 keeps unitZ and xy. Geometry

3D and the phone

  • A light with a reach. pointLight(..., reach: 11) bounds how far a light carries: full strength at the source and nothing at reach and beyond. pointLight, spotLight, rectangleLight, diskLight, tubeLight, and the matching Light factories take it, and Light.reaching(_:) sets or clears it. Left off, a light is unbounded as before. 3D
  • Up to 256 lights in a frame. A frame now carries up to 256 lights, where it carried eight. Past eight, a pixel is shaded only by the lights whose reach arrives there. Shadows, visible air, bounced light, and the path-traced export still read the first eight. See Examples/3D/Lighting/ManyLights. 3D
  • The sketch tells the phone what to look for. device.use(.markers) asks the phone for a mode, and device.look(for:) hands it the pictures to find, each with its printed width. The device repeats both on every connect. A tap on the phone wins, and device.latestState says where it landed and what the phone could not use. See Examples/3D/Phone/PhoneMarkers. Phone

Simulation and sound

  • A crowd that makes room. Crowd walks a crowd through itself with nobody overlapping while there is room to move. crowd.add(at:goal:) places a walker, and addObstacle and addWall build rooms and corridors. preferredVelocity replaces goals with a rule of your own, and isJammed marks walkers with no safe move. drawCrowd draws them. Examples/Simulation/Crowd has four scenes. Crowds
  • A sound played as a cloud of grains. synth.grainSource = GrainSource(contentsOf: url) and Voice(granular: GrainCloud(size: 0.08, density: 40, speed: 0)) play a sound as short grains. The grains keep the note's pitch while the place they are cut from moves at speed alone. speed: 0 holds one moment, and synth.grainScrub drags it through the sound. Synthesis
  • The shape of a grain cloud. size, density, positionJitter, pitchSpread, panSpread, and scatter set the cloud. GrainShape is the cut each grain is made with, and .cloud, .smear, and .rain are three places to start. GrainShape.level(at:) and Synth.grainCount draw it. See Examples/Audio/Grains. Synthesis

Export and output

  • A sketch as a widget on the desktop. ollin new <name> --kind widget writes an app with a WidgetKit extension inside it, and ./build.sh --install installs it. A widget is redrawn a few times an hour. The sketch spaces its pictures with override var widgetTimeline: WidgetTimeline { .every(minutes: 15, count: 4) }. Widget
  • The clock in a widget, and date on every sketch. In a widget time is seconds since midnight of the moment drawn, deltaTime is the spacing, and frameCount is 1. date is new on every sketch: the moment a frame stands for. A day schedule's scheduledPeriod now reads it too. Widget
  • A widget's run as pictures. --export-widget <dir> [--size WxH] writes the whole run as pictures named by the moment, on any sketch, so a piece for this surface can be judged in a second. Widget
  • A GIF export says what it will cost before it runs. When a GIF would need more than an eighth of the machine's memory, the export prints the figure before the first frame. It names two ways down: --gif-width, or --export-video, which has no such ceiling. The file itself is unchanged.

Live coding

  • An edit that does not start the piece over. OllinLiveCoding reads each ⌘↩ against the code the stage was built from. If only the inside of a method changed, and setup() was left alone, the run carries on through the swap. The canvas, the clock, and the random and noise streams come across. Live coding
  • What travels, and what starts over. @Saved is how a sketch says which properties should travel. Change a declaration, setup(), or anything setup() calls, and the swap starts the run over, as ⌘⇧↩ does. The toast names which happened. For a framework caller the new argument is SketchRunner.reload(to:keepClock:keepRun:). Live coding

The Guide and examples

  • The Guide teaches every tool it lists. OSCQuery and ollin doctor were the last two capabilities with only a mention and an example. Chapter 28 gains The sketch that says what it takes, and Chapter 1 gains Asking the machine what it has, both with figures. Hello Ollin
  • Casey Reas joins the recreations. Examples/Recreations/CaseyReas carries out two written instructions of the kind his Process works are made of. In Touching, circles that are never drawn leave a line between their centers while they touch. In Planes, lines that turn toward what they touch leave a quadrilateral through each touching pair's endpoints.

Changed

Each of these is a rename that can stop a sketch from compiling.

  • The GPU simulations step. updateSwarm, updateParticles, updateSimulation, updateParticleLife, updateParticleLenia, updateParticleFluid, updateSoftBodies, updatePhysarum, updatePrimordialParticles, updateSwarmChemistry, updateAttractorFlow, and updateEvolution are now stepSwarm, stepParticles, and the rest with the same suffix. Boids, ForceLayout, Meander, and DifferentialGrowth already spelled it step. BeatFollower.update(at:) is advance(to:), which leaves no update in the public API.
  • A smoothed value jumps. $x.set(v) is now $x.jump(to: v) on @Eased, @Smoothed, @Sprung, and @Param, and on the DampedSpring and OneEuroFilter values under them. It arrives with no glide and drops the filter's history, as it did.
  • A random point in a ring says so. ring(innerRadius:outerRadius:) is now randomVector(innerRadius:outerRadius:), beside randomVector(in:). The old spelling was the one SDF.ring(innerRadius:outerRadius:) uses for the shape.
  • An index of refraction is ior: everywhere. refractedRays(through:from:index:closed:) and caustic(through:from:index:closed:) now take ior:, the label Material, MeshMaterial, LensInterface, and Filter.thinFilm already use.
  • A Boolean label is a participle. .mask(channel:inverted:), .masked(by:channel:inverted:), .lumaKey(low:high:inverted:), and .adaptiveThreshold(window:bias:inverted:) took invert:. .mirror(vertical:flipped:) took flip:, and .tile(count:mirrored:) took mirror:. elementaryCA and totalisticCA take wraps: (was wrap:), and map(_:_:_:_:_:clamped:) took clamp:.
  • A listing that asks the system is available…(). MIDIInput.sources is now availableSources(), MIDIOutput.destinations is availableDestinations(), and ScreenCapture.apps() is availableApps(), beside availableDisplays() and availableWindows(). DMXReceiver.universeNumbers() is now the property universeNumbers.
  • detailMapped fades by an amount. Mesh.detailMapped(_:normal:scale:amount:) took strength:, and MeshMaterial.detailAmount was detailStrength.
  • One label for an Easing. Timeline.to(_:in:curve:) and the CameraMove factories pushIn, pullOut, tilt, and reveal now take curve: (was ease:), the label @Eased and ParamSmoothing.eased already use.

Fixed

  • A long export no longer grows until the machine swaps. An export kept what every frame allocated until the process ended, and now holds one frame's worth from start to finish. The fix covers --export, the video, GIF, spatial-video, SVG, PDF, and web exports, a contact sheet, a parameter sweep, and --skip warmup frames (issue #23).

[0.7.0] - 2026-09-14

This release adds MQTT and OSCQuery, a step sequencer and an arpeggiator, pitch tracking, an ink outline for 3D meshes, and a film look. The phone becomes a touch surface, and ollin doctor says what a machine can run. A naming pass made fifty-three renames, so read Changed before you update.

Added

Drawing and 3D

  • A film look. .halation(threshold:radius:tint:amount:) puts the warm fringe film shows around its brightest highlights. .filmGrain(amount:size:seed:) lays a stock's grain over a layer, most in the middle tones and none at black or white. Both cross to the web page. Examples/Effects/FilmLook draws a night street through them. Effects
  • The cartoon look. outline(width:color:) draws an ink line around every mesh that follows, width canvas pixels wide at any distance, over .toon or any finish. Material.outlineWidth, outlineColor, and outlined(_:color:) carry it on a material, and noOutline() takes it off. The Inked example under 3D/Materials shows it. 3D
  • A light that follows the camera. Light.relativeTo(.camera), or LightingPreset.relativeTo(.camera) for a whole rig, keeps a light placed around the eye as the camera orbits. headlight() is a light from the eye down the view. World space stays the default. 3D

Simulation

  • Two more fields that evolve. .smoothLife(radius:birth:survival:intervalSoftness:cellSoftness:) runs Rafler's SmoothLife, the Game of Life's rule on a continuous field, with the paper's glider parameters as defaults. .predatorPrey(halfSaturation:predatorGrowth:predatorDeath:steps:) puts prey and predators on one land, where the wake winds into spiral waves. Both run on makeSimField. SmoothLife joins the Simulation/Automata picker, and Simulation/PredatorPrey is new. Effects
  • Spins against the heat. .ising(temperature:field:sweeps:seed:) runs the Ising model on a field. A cold field grows into domains, a hot one is noise, and at Sim.isingCriticalTemperature clusters come in every size. IsingSpin names the two levels for the brush, and the rule joins the Simulation/Automata picker. Effects
  • Fireflies in step. Kuramoto is the model of synchronization, on the CPU: a crowd of oscillators, each pulled toward the phase of the others. It reads coherence and meanPhase, and has criticalCoupling, a lag, and a ring range. Examples/Simulation/Kuramoto is a meadow of fireflies falling into step. Coupled oscillators

Sound

  • A step sequencer. StepSequencer is a bar of steps read against the beat. Each step is a note or a rest with its own velocity, probability, and ratchet. The bar has swing, rate, gate, and seed. Write one as "36 . . 36 . . 36 ." or from a Rhythm. See Examples/Audio/Sequencer. Composition
  • An arpeggiator. Arpeggiator plays whatever is held, one note a step, in any Arpeggio.Pattern over any number of octaves. Hold notes with hold(_:) and release(_:), or set notes from a controller's held keys. latches keeps the last chord playing. Composition
  • Scheduled notes land on their sample. The sequencer and the arpeggiator hand back ScheduledNotes, each with its beat, and Synth.play(_:tempo:from:) plays them to the sample. Synth.play(_:velocity:for:after:) gains after:, a wait in seconds that lands a note on its own sample, live and in an export. Composition
  • The note being sung. Every audio source now has pitch: the fundamental in hertz with a confidence, the nearest note, and the cents off it. note is the short form, and chroma is the twelve pitch classes. Audio/Tuner follows the bundled violin, or the microphone with --mic, and Audio/GuitarTuner tunes a guitar. Audio

The phone

  • The phone as something you play. Tap Touch in Ollin Capture and every finger on the screen reaches the sketch, with no camera running. PhoneDevice.touches reads down, the fingers on the glass with a number, a place, and a contact width each, and taps() drains the landings. Examples/3D/Phone/PhoneTouches plays it. Phone
  • The barometer. Tap Air and latestAir carries the pressure in kilopascals. It also says how far the phone has risen since it started measuring, good to about a tenth of a meter. Lifting the phone becomes a control that needs no camera. Phone
  • How the phone's picture is moving. Tap Flow and a tethered iPhone measures optical flow on its rear camera. PhoneDevice.latestFlow reads as the Mac's FlowTracker field does, through vector(at:in:), samples(in:every:), and averageFlow(in:), and adds interval, the time between its two frames. latestFlowFrame is the frame it was measured on. Phone
  • MotionField lives in the core. It moved from OllinVision and is now built from a closure, so a source of your own can produce one. A sketch that imports Ollin sees it unchanged.

Connections

  • The message bus a building speaks. import OllinMQTT, and MQTTClient(host:) connects a sketch to a broker. subscribe(to: "home/+/temperature") takes every room's reading. Read the latest on a topic, everything since the last frame, or bind it to a @Param. MQTTMessage reads a number, a switch word, or a JSON field through number(named:). See Examples/Integration/MQTTRoom. MQTT
  • MQTT for a piece left on a wall. A sketch publishes the same way, and a retained publish reaches the next sketch to subscribe. A MQTTWill is what the broker publishes if the machine is cut off. A lost connection reopens after a backoff and puts back every subscription and unacknowledged message. MQTT
  • The sketch says what it takes. extend(OSCQueryServer()) publishes every @Param as an OSCQuery namespace. A control app such as TouchOSC, Chataigne, or ossia score lists the sketch, builds its own controls, and sends values back over OSC. namespace() hands the sketch the same tree as an OSCQueryNode. Examples/Integration/OSCQuery draws the tree it serves. OSCQuery
  • A color on the OSC wire. OSCArgument gains .color, the OSC 1.1 r type, read and written as a Color. An exhaustive switch over the arguments needs the new case. OSC

Parameters and the live window

  • --list-params says what a sketch declares. It prints every @Param with its name, its kind, its value, and what it accepts. It runs setup() first and honors what is given beside it, so --list-params --param radius=200 --cue dusk describes that run. Each value is in the spelling --param reads back. Export
  • A frame rate and a paper size are menus in the inspector. @Param var rate: FrameRate = .film and @Param var sheet: PaperSize = .a4 present pop-up menus. The sheets go by their own names (Letter, Legal, Tabloid), which is also what PaperSize(named:) takes. Parameters
  • The edit lands in two speeds. On ⌘↩ OllinLiveCoding puts a plain build on stage the moment it compiles. The optimized build replaces it when ready, with the clock carried both times. --single-build waits for the one optimized build. In the engine it is SketchSession.landsPlainBuildFirst and isOptimizing, with InspectorStatus.optimizing on the chip. Live coding
  • A name completes under the caret. OllinLiveCoding lists what the Swift toolchain's completion service knows at the caret. Return or Tab takes a row, and a call lands with its arguments as placeholders that Tab walks. View ▸ Complete as You Type turns the automatic list off. CodeCompleter in OllinRuntime is the engine. Live coding

Tools

  • ollin doctor says what this machine can run. It checks macOS, swiftc, the GPU and what it supports, and the shader compiler. It also checks which ollin is on the path, the completions, and the camera, microphone, and screen recording permissions. An unsettled answer carries the line that settles it, and nothing asks for a permission. Doctor
  • A shell that knows the flags. ollin install now puts zsh completions in place. They cover the subcommands after ollin and the flags of the one you are typing, each with a line on what it does. ollin completions prints the file for putting somewhere yourself. Single-file sketches

The Guide and the reference

  • Ten Guide chapters teach more of their tools. Chapters 7, 9, 16, 19, 20, 22, 28, 30, 31, and 32 gain twenty-three figures. Chapter 28 now has sections for timecode and OSC, Chapter 30 one for the camera fallback, and Chapter 31 for transparent output and the broadcast grid. The Guide
  • Chapter 9 reads photographs. Its figures and its closing sketch use the bundled pictures, where they used a sunset painted in code. Chapter 31 proofs the marigolds against the press. Authoring a picture pixel by pixel stays as a pointer to the PixelField example.
  • The reference's Swift is compiled. Scripts/check-snippets.sh now compiles every Swift block in the Docs/ pages beside the Guide's. Scripts/check-api-names.sh reads the public surface under API/ against the naming rules, and its first run named the renames under Changed.

Examples

  • A homage after Ryszard Winiarski. Examples/Recreations/RyszardWiniarski reads two of his rules. Obszar fills a gridded square field by field, each decided by a coin, a die, or a rising share of black. Losowanie dwiema kostkami lays black and white runs whose every length is the sum of two dice.
  • A homage after Vicente Rojo. Examples/Recreations/VicenteRojo reads two of his series. Negaciones paints the letter T only as the shadow a T-shaped block would cast, a wall of them repainted one panel at a time. México bajo la lluvia is rain crossing a square as a grid of small marks.

Changed

The renames below can stop a sketch from compiling. Each gives the old name and the new one.

  • Sketches compile faster. Every sketch compile is one whole-module job (-wmo), in every host that compiles a sketch. A 20-line sketch compiles in 0.6 s, where it took 1.0 s.
  • Limits spell min…/max…. ParametricLSystem.taperedTree(minimumLength:) takes minLength:, and ContourDetector.detect(in:…maximumDimension:) takes maxDimension:. HandTracker's maximumHandCount is now maxHandCount in the initializer, the property, and detect(in:maximumHandCount:). TrajectoryTracker's minimumObjectRadius: and maximumObjectRadius: are minObjectRadius: and maxObjectRadius:.
  • The laser's limits too. ILDAFile.maximumPointsPerFrame is now maxPointsPerFrame, EtherDreamDAC.maximumBatch is maxBatch, EtherDreamDevice.maximumPointRate is maxPointRate, and LaserSafety.maximumBrightness is maxBrightness.
  • Every public seed: is an Int. seed: variation now needs no UInt64(...) around it. The types that took a UInt64 are Boids, AntColony, ContinuousPacking, CrackGrowth, DielectricBreakdown, DiffusionLimitedAggregation, ForceLayout, Kuramoto, MeshGrowth, MeshReactionDiffusion, Vehicle, and Population. SplitMix64(seed:), the generator itself, keeps its UInt64 state word.
  • Seeded constructors take an Int as well. DifferentialGrowth and its line and ring, Meander and its line, and NBody.cluster and .disk take an Int seed. So do Heightfield.diamondSquare and .eroded, and population(count:genes:seed:) on Sketch.
  • Configuration Booleans read as assertions or state. Fit.Result.settled is now isSettled, and CloudAlignment.applied is isApplied. PathTracing.denoise and its denoise: label are denoises. DifferentialGrowth.fixedEnds and its label are hasFixedEnds. SchottkyPairing.fromExterior and toExterior are mapsFromExterior and mapsToExterior. Wheel3D.driven is isDriven, and the wheel(at:…driven:) label stays.
  • One spelling per kind of step. PingPong.advance() and PingPongTexture.advance() are now swap(). TimelineModel.step(byFrames:) is now step(_:).
  • How much of an effect is amount. Generator.grainGradient(…intensity:…) and Generator.pulsingBorder(…intensity:…) now take amount:. intensity stays for light.
  • A loader spells withExtension:. PhysicsSnapshot(resource:extension:in:) is now PhysicsSnapshot(resource:withExtension:in:).
  • The state follows the verb. SyphonClient.isActive is now isConnected, and SyphonClient.stop() is disconnect().
  • A destination is a path. Automation.write(to:), Take.write(to:), PhysicsSnapshot.write(to:), World3D.save(to:), and ILDAFile.write(_:to:name:company:projector:) take a String path beside the URL they took before.

Fixed

  • An iPad app running on the Mac. The framework now builds and runs under Mac Catalyst, which is how an App Project previews on the Mac. The Mac and the phone compile as before.
  • A cape sinking into the back it hangs on. A skeleton-carried surface whose mesh was wound to face the figure passed through it. Behind is now toward the figure whichever way the mesh is wound.
  • drawPlane faces the way its normal says. The plane named +y as its normal and wound its quads to face -y. The new ink outline drew every such floor as a slab of ink. Its quads now wind counter-clockwise seen from above.

[0.6.0] - 2026-09-13

This release lets a sketch bend, press, and slide one sounding note, from code or from an expressive MIDI controller. A tethered iPhone names the sounds around it, a layer takes a look from a .cube file, and exports gain named frame rates and paper sizes. One type changed on the export calls, so read Changed before you update.

Added

Effects

  • A look from a .cube file. ColorLUT reads the color table a grading tool exports, in both its forms, and .lut(_:amount:) applies it to a layer or the whole frame. A look can also be built in code and written out as a .cube, and one warm print ships with the framework. Looks
  • Two more automata on a field. .wireworld() is Silverman's computing automaton, a circuit typed as text, with WireworldCell naming its four states. .schelling(preference:vacancy:mobility:passes:seed:) is Schelling's board of two kinds sorting itself from a mild preference, with SchellingCell for the brush. Both join the Simulation/Automata picker. Effects

Sound

  • A note under the finger. noteOn hands back a PlayingNote, and bend(_:semitones:), press(_:_:), and slide(_:_:) reach that one note while it sounds. A bend moves its pitch, pressure drives the bow, the breath, or the level (Voice.pressureAmount), and a slide moves the filter's cutoff (Voice.Filter.slideAmount). pitchBend bends the whole instrument. Synthesis
  • Per-note expression over MIDI. MIDIInput.heldNotes reads every held note with its bend, pressure, and slide resolved: per note on a polyphonic-expression surface (mpeZones) and per channel on a plain keyboard. MIDIOutput sends bends, pressures, registered parameters, and a zone. MIDI
  • Pitch shift, freeze, and a stretched recording. .pitchShift(PitchShift(semitones:mix:)) moves the pitch without the length, and .freeze(Freeze(amount:)) holds an instant. Both join the effect chain. stretched(by:) on a Recording or an ImpulseResponse gives it back longer at the same pitch. Synthesis
  • The phone's ears. Switch Hear on in Ollin Capture and a tethered iPhone names the sounds around it, with only the labels crossing the cable. PhoneDevice.sounds reads as the Mac's SoundClassifier does: confidence(of:), topClassification, the draining events(), and timeSinceHearing(_:). SoundClassification and SoundEvent now live in the core, so import Ollin alone spells them. Phone

Export and output

  • A frame rate you can name. Every export's fps: takes a FrameRate. A number still stands in, so fps: 60 reads as before. .film, .pal, .ntsc, .ntscFilm, and .ntscDouble name the awkward rates as exact fractions, and --fps takes a name, a number, or a fraction. Export
  • A sheet by name for the machine exports. GCode(.plotter(), paper: .a4) and DXF(paper: .a3) size a drawing for a sheet, with a clear margin on every side. PaperSize carries the ISO A series and the US three, turns with .landscape, and reaches the canvas presets through canvasSize(dpi:). --gcode-paper and --dxf-paper do the same from the command line. G-code
  • The screen angles of a separation. PrintSeparation.screenAngles(for:) returns the angles a separation's halftone gives your inks, and ProcessSeparation.screenAngles is the four-color rosette in plate order. A proof can label them, and a sketch can screen its own masters at the same angles. Print separations
  • A laser optimizer from a projector's two numbers. LaserOptimizer(pointsPerSecond:refreshRate:) sets one up in one line. Laser

Parameters and the live window

  • A rule typed where the parameter is set. In OllinLive, right-click a number's or a switch's diamond for Write a Rule, and a field opens under the row. Return drives the parameter from the rule, and an emptied field takes it away. A rule that cannot be read stays, with a caret where it went wrong. Timeline

Examples and the Guide

  • A homage after Sol LeWitt. Examples/Recreations/SolLeWitt carries out two of his instructions. Wall Drawing 118 is fifty points at random, all connected by straight lines, drawn wall after wall at a drafter's pace. The other is the forty-five two-part combinations of his 1972 compass alphabet on one sheet.
  • Chapter 26 of the Guide shows its temporal tier. Four figures join Sculpting with fields. Two magnify the same exported pixels with temporal and specular anti-aliasing off and on. Two are diagrams: what each tier of temporal upscaling renders, and which frames interpolation draws, makes, and shows. Guide

Changed

  • fps: is a FrameRate, where it was a Double. This holds on every export entry: OllinApp.image, export, exportSequence, exportVideo, exportGIF, and the vector, spatial, web, sheet, and separation exports. A literal compiles unchanged. A Double variable needs FrameRate(rate). Export

Fixed

  • The reference and the Guide name calls as the code spells them. Seventy-odd backticked names had gone stale behind a rename: .bloom(threshold:intensity:radius:) where the label is amount:, hopfBases(spiral:) for spiralCount:, frameRendered(_:_:) for frameRendered(_:image:), and Mesh(resource:extension:in:) for withExtension:. The effects, physics, and 3D pages are corrected.

[0.5.0] - 2026-09-12

This release lets solids cut each other and lets a shape or a solid break into pieces that fit back together. A frame can leave for a compositor in linear light, as an EXR. On the website, every Guide chapter opens on its sketch running.

Added

  • Solids cut each other. union(_:), intersection(_:), subtracting(_:), and symmetricDifference(_:) on a Mesh are the four set operations a filled Shape already had, carried into space. What comes back is an ordinary closed mesh. Cutting is CPU geometry, so cut in setup(). 3D
  • Things break. fractured(into:seed:) cuts a Shape or a Mesh into convex pieces that fit back together exactly, and a point makes them crowd around the blow. With it come convexHull(of:) in space, Shape.area, centroid, bounds, and separated(), Mesh.volume and its centroid, and World.remove(_:). Fracture
  • A frame for a compositor, in linear light. --export-exr <path> writes one frame before the tone map and the eight-bit rounding, and --export-sequence <dir> --exr writes a folder of them. Red, green, and blue hold the light itself, alpha holds coverage, and a 3D camera adds a Z channel. In code, OllinApp.exportEXR. Export
  • Every Guide chapter opens on its sketch running. On the website, a chapter's first picture is a clip of the sketch that chapter builds, with the committed still as its poster. The markdown is unchanged, so a clone, GitHub, and a reader who blocks video see the still. Scripts/guide-clips.sh records the clips, and the manifest moved to Media/media.json.
  • The site tells a search engine what it holds. /sitemap.xml lists every page the build writes, each at the address its own canonical link claims, and /robots.txt names the sitemap. Neither is written when the site has no address of its own.

Fixed

  • every(_:) fires at zero in the live window. It missed that first beat there, while every export of the same sketch fired it. after(0) now fires on the first frame. Animation
  • A 2D body built from an outline of more than eight corners has a collider. It had none, so it had no shape and no mass, and hung in the air where it was born. An outline past the solver's limit of eight is now reduced to the eight corners that keep the most of it.

[0.4.0] - 2026-09-11

This release makes the Syphon satellite usable from a package dependency again and adds an API reference generated from the source. On the website, every page gains a markdown twin, and the front page's sketches become one band you page through.

Added

  • An API reference generated from the source. Every public symbol of the twenty-two library modules has a DocC page, beside the reference written by hand. The core's 470 top-level names are grouped on one landing page. Scripts/api-docs.sh builds it locally and fails on a documentation warning.
  • The site can be read by a machine. Every page has a markdown twin at the same address, with .md in place of .html. /llms.txt is a curated index that points at those twins. Nothing fetches it automatically.

Changed

  • The front page's sketches are a band you page through. Hello, circle now leads a row of sketches, each running beside the program that draws it, in place of the separate band of three. A phone gets them too. Paging is the browser's own scrolling, and only the sketch on screen is fetched.

Fixed

  • The Syphon satellite works from a package dependency again. A project that pulled Ollin in by version, which is what ollin new --remote writes, could not use OllinSyphon. The build stopped with the target 'CSyphon' in product 'OllinSyphon' contains unsafe build flags. Nothing about the running code changed. Syphon
  • The site's favicon no longer sits in a white box in Safari's tabs. The mark is drawn on nothing now, and the page picks between a near-black file and a paper one.

[0.3.0] - 2026-09-10

This release adds a library of sample photographs, a short film, and a still picture that stands in for a camera, so a sketch that reads the world runs on a Mac with none. It also brings cues, transparent output, DXF export, a 3D scene as plotter lines, tilt and twist from a stylus, and seven sound effects.

Added

Drawing

  • The stylus beyond its press. stylus.tilt is how far the pen leans, stylus.twist the barrel turn, stylus.isEraser which end is down, and stylus.isNearby covers hovering. Everything reads zero under a mouse, and a take records the values. stylus.tiltIsAvailable answers the way pressureIsAvailable does. Input
  • Files dropped on the window. A picture, a clip, a font, or a table dropped from the Finder arrives as a path. droppedFiles() returns what was dropped since the last call, filesDropped() is called at each drop, and mouseX/mouseY hold where it landed. Every host takes the drop. Input
  • A picture resized and cropped. Image.resized(width:height:) returns a resampled copy, the small working copy a stipple, a dither, or a mosaic wants. Image.cropped(x:y:width:height:) returns a rectangle of the picture, clamped to it, and Image.cropped(toAspect:) the largest centered piece of a given shape. Cropping scales nothing. Images

Effects

  • Hatching that follows the picture. layer.filtered(.hatching()) draws the layer as pen work whose strokes run along its own flow, so the marks bend around a form. The darker the tone, the more strokes it lays. spacing, length, and directions set the pen, the stroke, and how many layers stack. Effects
  • Shock, the picture flattened into regions. layer.filtered(.shock()) smooths the layer along its own flow and sharpens it across that flow. Soft shading snaps into flat regions with crisp edges, and no color is invented. iterations sets the level of abstraction, and radius, flow, and threshold tune each round. Effects
  • A forest that keeps burning. Sim.forestFire(growth:lightning:) runs the Drossel-Schwabl rule on the GPU. Bare ground grows trees, a tree catches from a burning neighbor or from lightning, and a burning cell is bare ground the next step. Effects

3D

  • A 3D scene on the plotter. lineDrawing(of:) turns meshes seen through a camera into 2D paths with everything the surfaces hide taken out. They reach an SVG, a PDF, G-code, or DXF. creaseAngle is the dial between a drawing and a wireframe, Mesh.transformed(by:) places each mesh, and hidden keeps the covered stretches. Line drawing
  • Fog as one value. fog(.mist) takes a Fog: a color, a veil (how much of a surface at the camera's target distance is fog), and a pooling (how fast it thins with height). One preset reads alike over a tabletop and a valley. The bare fog(_:density:heightFalloff:) is unchanged. Atmosphere
  • Five fog presets. .haze, .mist, .thick, .groundMist, and .night are the presets, and tinted(_:) takes another color. A @Param of the type puts them on the inspector's menu. Atmosphere

Sound

  • The three effects that hold a level. .compressor(Compressor()), .limiter(Limiter()), and .gate(Gate()) join the effects chain. A compressor turns down what is over its threshold, a limiter is a ceiling, and a gate quiets what is under its own. makeup brings a compressed phrase back up, and hold keeps a gate from chopping a decaying note. Synthesis
  • The four effects that move a sound. .chorus(Chorus()), .flanger(Flanger()), .phaser(Phaser()), and .tremolo(Tremolo()) join the effects chain. Each is one slow wave and the thing it moves. rate and depth are on every one, and a mix of 0 is the plain sound exactly. Synthesis

Vision and capture

  • A still picture where there is no camera. Camera.orStill(_:) gives back a running camera where the Mac has one and a still picture where it does not. Everything downstream takes either. --photo takes the picture even where a camera would have worked. Fourteen vision examples now fall back to a bundled photograph. Vision
  • A still picture as a feed. StillFrames publishes one picture as both a VideoFeed and a FrameSource, so it stands wherever a camera or a video player would. It republishes a few times a second, because an analyzer drops frames it cannot keep up with. Vision
  • VideoPlayer.snapshot() works offline. Under a headless export it reads the same virtual playhead the frame does, so seek(to:) and then snapshot() hands back the moment asked for. A still-image detect(in:) over a clip now works there, where a live tracker reads nothing. Video

Sample photographs and a film

  • Sample photographs to work on. import OllinSamplePhotos, and SamplePhoto.portrait.load() hands a sketch a real picture with its credit carried in code. The first four are each a 1600-pixel square. It is a library of its own, so an app that never imports it ships none of them. Sample photographs
  • Four whole figures and a pair of hands. SamplePhoto.reaching, .wrestler, .dancer, and .handstand are framed upright so no limb runs off the edge, and each yields its skeleton. SamplePhoto.hands is two open palms with every finger separated, and Vision/HandTracking now reads it. Sample photographs
  • Four streets and two tables. SamplePhoto.alley, .street, .textiles, and .city are whole scenes. Pixel sorting, seam carving, the frequency domain, and the picture-fit example now run on them. SamplePhoto.breakfast and .desk are tables seen from above, and object detection moved to the breakfast. Sample photographs
  • Two landscapes, the first wide pictures in the set. SamplePhoto.headland and .boats are a headland at Loreto and small boats off Cozumel, both at dusk. Everything before them was a square or an upright. Sample photographs
  • A page under uneven light, and two surfaces. SamplePhoto.page, .talavera, and .stone join the set. The page is what adaptive thresholding is for. The talavera repeats without a seam for 3D/Materials/Triplanar. The stone carries real relief, so 3D/Materials/Parallax reads one photograph as its color and its height map. Sample photographs
  • A short film, for what a still cannot show. SampleClip.dance is thirty seconds of a dancer on a plain studio ground, 960 square and silent, with the camera locked off. Vision/OpticalFlow and Vision/ContourTrace read it where there is no camera. Sample photographs

Connections

  • A table you put things on. TUIOReceiver reads a tangible surface over the network. cursors are touches, objects printed markers with their symbol and angle, and blobs shapes it found but cannot name. Each keeps its id while on the surface, and touch.position(in: bounds) puts one where it belongs. import OllinOSC is all it takes. TUIO

Export and output

  • Transparent output. A canvas that starts with background(.clear) leaves its background behind in every export. The PNG and the sequence carry an alpha channel, and the GIF its one transparent index. A clip keeps the alpha through --codec proRes4444 or the new --codec hevcWithAlpha. The other codecs still composite over black and say so. Export
  • DXF, a drawing for the shop. --export-dxf panel.dxf writes the frame as a DXF a CAD program opens in millimeters. Strokes are lines along their centerlines, fills are closed polylines, and a circle stays a circle. DXF
  • DXF layers, hatched fills, and the planner. Each color goes on its own layer, so a shop tells a cut from a score by the colors you drew in. --hatch writes fills as line work, and DXF(width:) and Drafting are the planner behind the export. DXF

Parameters and the live window

  • Cues, looks saved and called back. saveCue("night") keeps every parameter's value under a name, and cue("night", over: 2) brings them back over a fade. nextCue and previousCue walk the sheet. The live hosts keep them in Sketch.cues.json beside the sketch. Cues
  • A cue from a controller or the command line. The performance host calls a cue from a MIDI program change or /ollin/cue, and --cue night renders an export at a saved look. Cues

The website and the Guide

  • Every example's page plays a clip. Scripts/media.sh renders a clip and a still for an example and puts them where the site reads them. The page plays the clip with the still as its poster. 353 examples have theirs, and the rest are listed with the reason they do not.
  • Every examples listing opens on a grid of its sketches. Each picture links to its sketch and carries its name. On the website, resting the pointer on a cell swaps its still for a short clip. The 3D folder became ten pages, since 137 sketches could not take one grid. Examples
  • The Guide and the README open on the work. The Guide's first picture is the sketch each of its thirty-two chapters builds, one per cell. The README's is thirty-two examples from every area of the framework. On the website both play, and the markdown carries the still. Guide
  • Thirteen Guide figures show real pictures. The optical-flow, slit-scan, contour, saliency, and detector figures used to draw their subject in code. They now read the bundled film and photographs, so a reader sees what the technique does to a real picture.

Examples

  • A homage after John Whitney. Examples/Recreations/JohnWhitney/Permutations draws the rule he set out in Digital Harmony. Points sit on concentric circles, the first turning once in a cycle and the hundred and fiftieth 150 times. Nothing is random, so the fan falls into a star at every simple fraction of the cycle. John Whitney
  • Four vision examples work with no camera plugged in. The mirror that grows Turing patterns takes the bundled dancer, the object tracker the wrestler, and the depth contours the street. The contour tracer is told which way round its contrast runs. The barcode reader and the trajectory tracker are unchanged.
  • A photograph in the color-vision check. Color/ColorVision and the Guide's figure show the woven blankets beside the palettes, seen the same four ways. The two commonest kinds flatten the weave to one olive band while the blues hold. Accessibility
  • The optical-flow overlay reads any source. Its arrows were scaled against a fixed number of pixels, which drew almost nothing for a dancer moving a few pixels a frame. Length and color now read against each frame's own fastest motion.

Fixed

  • The body-pose detector answers the first time it is asked. BodyTracker.detect(in:) could come back with nobody in the picture while Vision was still loading its 2D body-pose model. It now asks again, up to three times, until the process has seen one pose. Vision
  • A compute kernel costs less on every dispatch. Every compute(...) call used to read and hash the whole shader library to find its pipeline, once per dispatch per frame. A kernel written in the sketch's own source is now found by its own text. Compute

[0.2.0] - 2026-09-08

This release adds a sketch as a web page, a sketch on the phone, and the website. It also brings depth of field built from light, dashed strokes, Hobby's spline, convolution reverb, and an embroidery export. Bounds, note lengths, and tempos became typed values, so read Changed before you update.

Added

Drawing

  • Dashed strokes. strokeDash([12, 8]) cuts every stroke into dashes, dash then gap in the path's own units, and a phase: marches them along. SVG, PDF, and G-code carry every dash as its own subpath. noStrokeDash() puts the whole line back. Drawing
  • Dotted lines, and dashes as geometry. .dots(spacing:) under strokeCap(.round) is a dotted line. Contour.dashed(_:) and Shape.dashed(_:) make the same cut as geometry. drawCircle, drawRect, drawTriangle, drawNgon, drawStar, and their neighbors dash too while a dash is on. Drawing
  • Hobby's spline. drawCurve(points, spline: .hobby) threads a curve through points with a bend that flows evenly. The default spline is unchanged. .hobby(tension:curl:) tunes it, Contour(curveThrough:spline:) and Shape(curveThrough:spline:) take the same choice, and HobbySpline(through:) is the typed form. Geometry
  • Parquet deformations. parquetDeformation(columns:rows:from:to:sweep:) lays a tiling whose tile changes shape across it, with no piece coming apart. An edge is a Profile (.straight, .tooth, .zigzag, .wave, .bump, or .custom), and a Sweep sets which way the change runs. Read tiles for the pieces or edges for line work. Parquet deformations
  • Lighter, darker, and the complement of a color. ink.lighter(), ink.darker(by: 0.25), and ink.complement derive a color from one you hold. The first two step its perceived lightness while hue and chroma stay put. The third is the opposite hue at the same lightness and chroma. Color
  • Ramp stops as values, and a ramp reversed. Ramp(stops: [Ramp.Stop]) takes typed stops beside the tuple list. ramp.reversed runs a ramp the other way, a hard edge keeping its colors in mirrored order. Color
  • Deriving one easing curve from another. Easing.reversed() runs a curve from its other end, so an ease-in becomes its ease-out: .easeInQuad.reversed() == .easeOutQuad. mirrored() puts the curve on the first half of a trip and its reverse on the second. Animation

Effects

  • Newton's basins. generate(.newton(roots:)) runs Newton's method from every pixel over the polynomial with the roots you place, up to eight. Each pixel takes the color of the root it lands on. relaxation scales the step, phase turns the palette, and a pixel that never lands is painted trapped. Effects
  • Gabor noise, a noise whose spectrum you design. generate(.gaborNoise()) sums small Gaussian blobs that each carry a cosine wave. The field has one wavelength in pixels, a band bandwidth wide around it, and one direction or every direction. impulses is the quality and seed picks the field. Noise
  • The same Gabor noise on the CPU and in a shader. The field is gaborNoise(x, y, ...) and the GaborNoise type on the CPU, and gaborNoise(p, ...) in a shader of your own. Noise
  • Brushwork, the picture as paint. layer.filtered(.brushwork()) lays the layer on as paint patches that follow the picture's own flow, so detail flattens while edges stay crisp. radius is the brush size, stretch how far an edge draws it out, and sharpness how firmly the flattest patch wins. Effects
  • XDoG, the picture as pen and ink. layer.filtered(.xdog()) draws a line wherever the layer has an edge, solid ink where it is dark, and paper everywhere else. threshold and softness set the cut, radius the line scale, sharpening the push on edges, and foreground / background the ink and the paper. Effects
  • Depth of field from light. LineSpray renders an array of SprayLines as depth of field the way a lens makes it. Each scattered point becomes a Bokeh ball that grows with its distance from the plane of focus. makeLineSpray(_:sampling:passesPerFrame:bokeh:) makes one, drawLineSpray(_:) draws it, and developed(exposure:ground:) prints it. Depth of field
  • A running mean of light. makeAccumulator() returns an Accumulator, a layer that sums every pass drawn into it under withAccumulator(_:passes:) and hands back the mean as image. A picture built from faint samples converges instead of brightening without end. reset() starts it over. Accumulation
  • Accumulated light in a shader, and layers in single precision. An accumulator's sum and passes are there for a shader of your own, and Filter.develop(exposure:ground:) prints accumulated light. makeRenderTarget(precision:) and makeFeedback(precision:) take LayerPrecision.float32. Accumulation
  • Particles as light. drawParticles(_:style: .light) deposits each particle's color × alpha × area as linear light with no perceptual remap. A particle at or under one pixel is a single texel, so a million one-pixel points cost a million fragments. The default .marks style is unchanged. Depth of field

3D

  • A lens as a field of view. .focalLength(35) is the vertical angle a 35 mm lens sees on a full-frame camera, so fieldOfView: takes the lens's own number beside .degrees(_:). Pass sensorHeight: for a smaller format. 3D
  • Fractal fields. Three fractals join the raymarched field as leaves: SDF3D.mandelbulb(power:iterations:radius:), .mengerSponge(iterations:size:), and .mandelbox(scale:iterations:size:). They melt, carve, mirror, and repeat like any other leaf. 3D/Raymarching/RaymarchedFractals turns each one's own dial. Combinators
  • Sharp features from a field: dual contouring. isosurface(at:in:resolution:method: .dualContouring) meshes a field with one vertex per cube, placed where the field's own normals meet. A block keeps its corners and a bored hole its rim, where marching cubes rounds every edge off. Isosurfaces
  • Tensegrities. Tensegrity describes a structure of struts held apart by cables, with three balanced forms ready-made: prism(struts:), the six-strut icosahedron(strutLength:), and a tower(levels:). World3D.addTensegrity(_:at:) gives one weight, so it falls, lands on its own cables, and stands. Tensegrity
  • A tensegrity of your own. imbalance says whether an arrangement of your own can hold, and drawTensegrity(_:) draws it where it is. A new .cable joint kind is the rope beside .distance's rod. Tensegrity

Compute

  • A kernel that sees the camera. Camera3D.viewMatrix, projectionMatrix(aspect:), viewProjectionMatrix(aspect:), and matrices(aspect:) are public. ComputeParams.append(camera:aspect:) packs them, and cameraParams() does it for the active camera. In a kernel, ollin_project projects a world point to canvas points and ollin_project_eye takes a camera-space point. ballSample(float3) joins discSample. Compute
  • Compute binds up to ten buffers. compute(_:buffers:count:params:) hands a kernel any number of ComputeBuffers of any element types at indices 0…9. compute(_:reading:writing:) now takes two element types, so a kernel can read static geometry and write an OllinParticle buffer. ComputeBindable and Color.linearRGBA are public. Compute

Sound

  • A room of your own: convolution reverb. Reverb(impulse, mix:, preDelay:) plays an instrument through an ImpulseResponse: a recording, fading noise, or a room drawn from a rule. .reversed() runs any of them backward. Turning mix never cuts a tail that is sounding. Synthesis
  • Where an impulse response comes from. An ImpulseResponse comes from .load, .resource, .decay(seconds:damping:), or a rule. synth.reverb still reaches it, and Effect.Kind gains .convolution. Synthesis
  • A tempo, and note lengths with names. Tempo is beats per minute with a beatsPerBar. tempo.beats(at: time) is what a StepCounter wants each frame, and tempo.seconds(of: .eighth) what a synth's for: wants. NoteLength names the lengths on a stave, and a number stands in for either. Composition
  • Every note length, and the rest of a tempo. NoteLength runs .whole down to .thirtySecond, with .dotted and .triplet deriving the others. seconds(beats:), seconds(bars:), bars(at:), and secondsPerBeat read the rest. Composition

Connections

  • A board with no firmware of your own. FirmataBoard in OllinSerial speaks Firmata over a serial port, so a board running the StandardFirmata sketch every Arduino IDE ships answers pin by pin. analog(0) and digital(2, pullUp: true) read. write(9, 0.5) and write(10, angle: 90) drive a PWM duty and a servo. Serial
  • A pin on a parameter. bind(analog:to:) puts a Firmata pin on a @Param. write(13, true) drives a digital pin, and messages() drains every decoded message. Serial
  • Timecode: a sketch that chases a timeline. TimecodeClock(from: midi) follows MIDI Time Code, the position a video deck, a show controller, a lighting desk, or a DAW sends. It reads as timecode, seconds, frameRate, isPlaying, and isReversed. Timecode does the drop-frame arithmetic, and MIDIOutput.send(timecode:) and send(sysEx:) cover the other direction. MIDI
  • The weather outside. Weather(at:), Weather(in: "Oaxaca"), and Weather(latitude:longitude:) read the conditions over a place every fifteen minutes: temperature, humidity, cloudCover, the wind, condition, and the day's sunrise and sunset. Nothing throws, a failure keeps the last reading, and an export reads once. Weather
  • More of the weather, and the sun with no network. precipitation, snowfall, pressure, and isDay come with a reading. Place.sun(at:) puts the sun in the sky with no network. Weather

Export and output

  • Embroidery, a frame as stitches. --export-embroidery leaf.dst writes the frame as stitches, in the Tajima .dst file nearly every embroidery machine reads. Strokes become a running stitch, fills connected rows, and each color its own thread. Embroidery(width:) takes the hoop's real millimeters, and Embroidery.stitches(_:in:) plans your own contours. Embroidery
  • Settled frames in an export. --settle N, or OllinApp.exportSettle, draws each written frame N times with the clock held and writes the last. An Accumulator's mean or a LineSpray then settles for every frame of a still, a sequence, a video, or a GIF. A take and made frames refuse it. Export

The web page

  • A sketch as a web page. --export-web records what a sketch draws over a duration and writes a self-contained page that plays it back in a browser. --inline writes a fragment for a page of your own. A sketch that declares loopDuration records one lap. Anything that does not cross stops the export by name. Web
  • Strokes and fills on the web page. Every stroke and fill crosses, with its blend mode: drawLine, drawPolyline, drawBezier, drawCurve, drawArc, drawPolygon, drawShape, and a Batch recorded from them. They travel as the points and the style the sketch gave. The page expands them through the framework's own expander, compiled to WebAssembly. Web
  • Pictures, atlas text, and gradients on the web page. The page carries a picture drawn with drawImage, text through the glyph atlas, and a gradient on an analytic shape. A live texture, such as a camera, still leaves as video. The page waits for its pictures before its first frame, and its handle gains ready. Web
  • Layers and effects on the web page. The page carries layers drawn with withTarget, every Generator, every Filter and Combine that is one shader pass, .gaussianBlur, .bloom, and postProcess. A Feedback layer or a single-field SimField keeps its state. The solves and the simulations with pipelines of their own still leave as video. Web
  • Shaders on the web page. A user Shader crosses with info.time and info.mouse live on the page, and so do compiled Visual chains. Web
  • Fields on the web page. A composed field (drawSDF) crosses as its program. A raymarched field (drawSDF3D) crosses with its camera, its lights, castShadows(), and the four shading models. An environment, an area light, and a glass or coated finish still stop the export by name. A raymarchResolution below one carries over. Web
  • Parameters as controls on the web page. The page offers a sketch's @Params. A parameter whose every effect moves along a line becomes a slider, a stepper, a switch, a color well, or a field per part. One that changes what is drawn stays at its recorded value, and the exporter says why. Web
  • Skipping the controls, and reaching them from a page. --no-controls skips the probe. An inline fragment reaches them through its handle: params, get, set, and reset. Web
  • A weight limit on the web page. --export-web refuses a page past 25 MB instead of writing it, and the message names the --max-page-size that writes it anyway. In code, that is maxBytes: on OllinApp.web(of:) and exportWeb, and a WebWeightRefusal carrying the numbers. Web

The phone

  • The sketch on the phone. A sketch runs on an iPhone or iPad. ollin phone Sketch.swift puts it there and installs it again on every save, its clock and parameters carried across, with the parameters live on the Mac. SketchRunner.beginInstallation is public, so an app of your own can turn the checkpoint on. On the phone
  • An app for the phone, from the generator. ollin new <Name> --kind ios-app writes a sketch as an iPhone and iPad app, with the project.yml that xcodegen turns into the Xcode project. --team <id> or OLLIN_TEAM sets the signing team. ProjectRequest gains team, and Capability gains staysOnTheDesk, the refusal a Mac-only capability gets. Project generator

The live hosts

  • The performance host on a controller. OllinLiveCoding answers OSC at fixed addresses under /ollin/ once a port is set in the inspector's Controls card. It learns a MIDI pad, button, or fader for any of them. The map is a host preference, never the sketch's, and holds across launches. Live coding
  • A host's own inspector card. OllinInspector.Palette is public, so a host's own card can sit beside the shipped ones.
  • The drag on the performance stage. Under OllinLiveCoding, hold Command over the stage and the shape under the pointer is outlined. Drag it, pull a corner, or turn the knob, and its numbers change in the code, which the host then evaluates. Only ⌘S writes the file. ⌘] and ⌘[ reorder the same way. Live coding

The website and the reference

  • The website. ollin site writes the README, the Guide, the reference, and every example with its source out as a static website, from the same files ollin docs reads. A workflow publishes it to GitHub Pages. Its front page plays Examples/Web/BreathingRing as the page --export-web records for it. The reference offline
  • Search on the website. Every page ollin site writes carries a search: the button in the bar, /, or ⌘K opens it. It looks through the Guide, the reference, and the examples one section at a time. The matching is MiniSearch (MIT), pinned to one release by its hash.
  • The logo. Ollin has a mark: the day sign's crossing bands with an eye at the center and four marks at the cardinal points. Logo/ holds it as two SVG masters, black ink on nothing, and the website shows it in the bar and as the favicon.
  • The public API, written down. API/ holds one generated listing per library product, every public type and member with its types, defaults, and deprecation. Scripts/api-surface.sh checks the listings against the build, so a change to the public surface reads as a diff in review. API

Examples

  • A homage after Frieder Nake. Examples/Recreations/FriederNake/HommageAPaulKlee draws the drawing usually called Hommage à Paul Klee (13/9/65 Nr. 2, 1965) from Nake's own list of its chance decisions. Bands buckle at their edges without crossing, quadrilaterals are left empty or filled, and circles are thrown over the whole. --export-svg gives the plotter drawing back.
  • A homage after Josef Albers. Examples/Recreations/JosefAlbers/Homage puts the Homage to the Square format on the canvas. Squares of ten, eight, six, and four units each sit half a unit lower than the one around them. New colors roll on every few seconds from five palette rules, built in OKLCH and crossfaded in OKLab. --export-grid prints a wall of them.
  • A Web example group. Examples/Web/BreathingRing draws the ring of breathing circles the site opens on. It is a sixty-second loop that wraps without a seam, with its ink and paper as parameters so a page can set its own theme.

Changed

The first two can stop a sketch from compiling.

  • Note lengths and tempos are typed. Note.length and Sonification.noteLength are NoteLengths, and Note.seconds(at:), Synth.play(_:tempo:), and Synth.play(_:step:tempo:) take a Tempo. A literal compiles as it did. A Double variable becomes Tempo(bpm) or NoteLength(beats:). Composition
  • A typed box for bounds. Box3 replaces the (min: Vector3, max: Vector3) tuple in Scene.bounds, Metaballs.bounds, ShadowArt.bounds, PhoneSceneMesh.bounds, PhonePlanes.bounds, and the in: box of isosurface and shadowArt. .min and .max read as before, and a tuple literal becomes Box3(min:max:). center, size, longestSide, padded(by:), and union(_:) come with it. Geometry
  • The live hosts compile the sketch optimized. OllinLive, OllinLiveCoding, OllinRun, and the gallery compile a sketch with -O, so heavy CPU work runs at the speed swift run -c release gives it. --no-optimize compiles it plain for debugging the sketch itself: asserts fire, and a crash names every frame. Single-file sketches
  • Recording and frame sharing no longer draw the frame twice. A live take (startRecording() or --record), a Syphon feed, the virtual camera, and an LED map now receive the frame the window shows. So does any SketchExtension that asks for it. A lit 3D scene that recorded at 19 fps records at 46. Recording
  • A shared frame arrives a refresh later. The frame reaches an extension a refresh or so after afterFrame, and wantsRenderedFrame / wantsRenderedTexture are read once per frame. Extensions
  • The Rendering/DepthOfField example converges. It deposits a million samples a pass as light into a running mean, with the focus, the lens, and the passes per frame as parameters. It was a noClear pile that brightened forever. The example
  • The README's catalog moved to the reference index. The capability table, the list of sixty-six generative techniques, and the 3D layer list now open Docs/README.md. The README's What's in it section keeps its eight paragraphs and points at the catalog.
  • The reader-facing pages in a plain register. Every reference page, the README, the roadmap, the example lists, and the concept pages are rewritten in plain words with the same facts. About a dozen stale API names, several wrong counts, and five mismatched figure captions are corrected.

Fixed

  • A parameter of your own type can be declared. A type declared outside the framework with a full ParamValue conformance could not be wrapped. @Param(constraints:) is now public, with a bare form for a type whose constraints are Void. The source write-back keeps a wrapper such as Opacity(0.5) around the literal it changes. Parameters
  • A translucent PNG composites at its own alpha. A translucent pixel of a loaded PNG drew too bright. It now blends as an image painted in memory already did.
  • Loading a picture no longer hangs a busy run. With every background worker already blocked, building an image's texture waited forever. The pixels are unchanged.
  • A raymarched field under an orthographic camera keeps its silhouette. It drew a soft halo at its silhouette and lost gaps narrower than the halo.
  • The Accumulation and HDR pages describe the running mean. They described a sum on a noClear canvas plus a tone map and left out the divide by the number of passes. Both now point at Accumulator and Filter.develop. Accumulation

[0.1.0] - 2026-09-02

The first tagged release. Ollin grew in one repository from May 2026 to this tag, and that history is not itemized here. Read this section as a table of contents: what the release holds, area by area, with a link to the reference for each. The README carries the fuller catalog, and the Guide teaches it in order.

Requirements. macOS 26 or later, a Metal-capable GPU, and a Swift 6 toolchain. Apple platforms only, by design: iOS and visionOS are future targets, and Linux, Windows, and the web are out of scope.

Versioning from here. Tags begin at 0.1.0. A breaking change or a new feature bumps the minor, a fix bumps the patch, and each release names its breaking renames in this file. Deprecation shims and a settled surface arrive at 1.0. Until then, pin .upToNextMinor(from: "0.1.0").

Added

The framework

  • Drawing. A p5-style API over a Metal core: setup() and draw(), and bare calls like drawCircle and background. draw() runs at the display's refresh rate from the first line, so motion is the default. Every frame composites in linear light with HDR tone mapping and analytic anti-aliasing. Drawing
  • Shapes, strokes, and fills. Some thirty analytic shapes, curved paths, concave and holed fills, variable-width strokes, marks that follow the hand, shape booleans and offsets, gradients, blend modes, clipping, accumulation, and retained batches. Drawing
  • Text and color. Bitmap, outline, and single-line plotter fonts through one drawText, in any script, in columns, justified, along a path, or as vector shapes. OKLab mixing, spectral paint mixing, palettes and colormaps, color vision simulation, and wide-gamut and HDR output. Text, Color
  • Shapes that merge. SDF combinators in 2D and in raymarched 3D: smooth union, subtraction, morphing, domain mirror, tile, and radial repeat, and a clay-like sculpt { } block. Combinators
  • Generative technique. Sixty-six classic techniques as first-class helpers, from Poisson-disk scatter and L-systems to Wave Function Collapse, strange attractors, marching cubes, paper marbling, and terrain erosion. Generators
  • Layers and effects. Off-screen layers with fifty-plus GPU filters, two-layer combines, feedback, simulation fields, and a compose DSL. Measured distance fields, light with shadows in a flat sketch, the frequency domain, and summed-area averages. Effects
  • Shaders of your own. Your own shade(uv, info) fragment function, inline or in a hot-reloading .metal file, with errors reported at your own line numbers. Chainable Visuals when you would rather skip the Metal. Shaders
  • Motion and parameters. Frame-rate-independent easing and springs, keyframe timelines, seeded variations, and record and replay. @Param properties become typed inspector controls, persist across reloads, and can follow a curve or a formula. Sketch, Automation, Variations
  • GPU compute and simulation. Compute kernels with a million particles a frame, and a neighbor-search primitive under artificial life and SPH fluids. Ping-pong texture simulations, steering crowds at GPU scale, populations that evolve, and chaotic systems. Compute, Simulation
  • Physics. A stepped World with Verlet particles and springs, Box2D bodies and joints in 2D, and Jolt-backed 3D bodies, joints, characters, vehicles, ragdolls, cloth, ropes, and water. Physics, Physics in 3D
  • 3D, opt-in. Cameras and imported scenes (OBJ, glTF, USD), instanced meshes and GPU-culled worlds, grass and an ocean, physically based materials with the full map set, glass with dispersion, area lights, image-based lighting, and a procedural sky. A 2D sketch never pays for any of it. 3D
  • Light and the lens in 3D. Shadows, ray-traced reflections, caustics, global illumination, atmosphere, temporal anti-aliasing, motion blur, and lens flare. 3D
  • The world as input. Nineteen on-device Vision trackers over the camera or any video, depth from a video model, screen and window capture, and video playback. CSV, JSON, and SVG import, live and pushed data feeds, and game controllers. Vision, Data
  • The phone as a sensor. An iPhone over USB is a LiDAR, motion, body, face, and hand sensor. The phone
  • Sound. FFT analysis with beat detection, listening for words and named sounds, and a synthesizer the sketch plays. Voice presets, physical models, sampled instruments, wavetables, a patchable graph, effects chains, a place in the 3D scene, and algorithmic composition, all carried into an exported video. Audio, Synthesis
  • Integration. MIDI, OSC, a network tempo session, serial, Bluetooth Low Energy, DMX and LED mapping, and show lasers. Syphon out and in, a virtual camera, haptics, a remote surface for a phone, and a room several machines join to draw one piece on one clock. Integration
  • Output. Headless stills and deterministic sequences, MP4 and GIF with slow motion, SVG and PDF with hatched fills, G-code, and print separations with press proofing. STL, OBJ, and 3MF for printing, USDZ and spatial video, a path-traced export, live recording with sound, and an accessibility layer for color vision and motion. Export
  • Running in the system. A finished piece as a signed Mac app, a screen saver, the desktop wallpaper, a menu-bar strip, or an installation that stays up for a week. A sketch as an app, Installation

The tools

  • The ollin command. One loose .swift file is a whole sketch, run from any directory. ollin new writes a starter, ollin install puts the command on PATH, and ollin check compiles a shader on this machine's GPU. ollin docs and ollin examples read the reference and the examples in the terminal. Single-file sketches, The reference offline
  • OllinLive. Save the file and the running window hot-swaps the sketch, with the clock carried across. @Param properties appear as typed inspector controls, and a timeline records their automation. The parameter timeline
  • Dragging a shape in OllinLive. Command-drag moves, resizes, or turns a shape by editing the source. ⌘] and ⌘[ put it in front of or behind its neighbor. Dragging a shape
  • OllinLiveCoding. The performance host: the sketch fills the window, the code is drawn over it as translucent text, and Command-Return recompiles the buffer mid-motion. Live coding
  • The project generator. ollin new and ollin generate write a ready-to-run project from ten templates or from any example. They also bring a GLSL fragment shader or a glTF or USD scene over as source, and scaffold an extension library other sketches import. Project generator
  • The examples. 494 example sketches in their own package, browsable in one gallery window, including twelve recreations after eight artists. Examples

The documentation

[Unreleased]: https://github.com/eaviles/Ollin/compare/0.19.0...HEAD [0.19.0]: https://github.com/eaviles/Ollin/compare/0.18.0...0.19.0 [0.18.0]: https://github.com/eaviles/Ollin/compare/0.17.0...0.18.0 [0.17.0]: https://github.com/eaviles/Ollin/compare/0.16.0...0.17.0 [0.16.0]: https://github.com/eaviles/Ollin/compare/0.15.0...0.16.0 [0.15.0]: https://github.com/eaviles/Ollin/compare/0.14.0...0.15.0 [0.14.0]: https://github.com/eaviles/Ollin/compare/0.13.0...0.14.0 [0.13.0]: https://github.com/eaviles/Ollin/compare/0.12.0...0.13.0 [0.12.0]: https://github.com/eaviles/Ollin/compare/0.11.0...0.12.0 [0.11.0]: https://github.com/eaviles/Ollin/compare/0.10.0...0.11.0 [0.10.0]: https://github.com/eaviles/Ollin/compare/0.9.0...0.10.0 [0.9.0]: https://github.com/eaviles/Ollin/compare/0.8.0...0.9.0 [0.8.0]: https://github.com/eaviles/Ollin/compare/0.7.0...0.8.0 [0.7.0]: https://github.com/eaviles/Ollin/compare/0.6.0...0.7.0 [0.6.0]: https://github.com/eaviles/Ollin/compare/0.5.0...0.6.0 [0.5.0]: https://github.com/eaviles/Ollin/compare/0.4.0...0.5.0 [0.4.0]: https://github.com/eaviles/Ollin/compare/0.3.0...0.4.0 [0.3.0]: https://github.com/eaviles/Ollin/compare/0.2.0...0.3.0 [0.2.0]: https://github.com/eaviles/Ollin/compare/0.1.0...0.2.0 [0.1.0]: https://github.com/eaviles/Ollin/releases/tag/0.1.0

↑↓ move ↩ open