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.pixelis one canvas pixel inuv:uv / info.pixelmeasures in canvas pixels anduv + float2(steps by them, on a layer kept at any12.0, 0.0) * info .pixel scale.info.resolutionis unchanged, so no shader moves. An exported page reads the same value. Sizes in canvas pixels - A shader can hand back light past white.
linearToExtendedSrgbis the sRGB encode with nothing cut off, the inverse ofsrgbToLinear. Returnfloat4(and light brighter than white is kept, wherelinearToExtendedSrgb( light), 1.0) linearToSrgbstops at white. Light past white - A feedback layer as a combine's second input.
scenetakes a.combined( with: trails, .mask( )) Feedback, anAccumulator, or aSimFieldas 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.readsOwnSensorssays so, anduse(_:)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-openprints the parameters' address without opening it. In the simulator- Depth in meters from one camera.
MetricDepthTracker(answerscamera, modelAt: ) meters(at:in:)and fills anRGBDFramefrom 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.
strokeDashnow cuts a line drawn with 3D points, each dash at the depth of its own stretch of the line.strokeDash(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[0.2, 0.1], in: .world) - A taper and a brush on a line in space.
strokeProfileandstrokeBrushshape 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(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.with: paint .image) { drawMesh( face .mesh( )) } 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(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 pictureface .occluder( )) } - A blink as an event.
devicehands over a blink, a smile, or an open mouth once, on the reading it begins, with the face that did it..expressions .events( ) isShowing(_:)andtimeSince(_:)read the rest, andPhoneExpressionnames your own. Expressions as events - A spot of skin, kept.
facereturns the texture coordinate under a click, and.textureCoordinate( along: ray) 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(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 coordinateswith: image) { } - A Face recording says it is a mirror.
view.isMirroredandrecordingare true for the front camera's face session, whose picture and measurements arrive mirrored together. A face's picture is a mirror.isMirrored - A wall from depth, and the surface under a click.
devicereturns 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( under: mouse, covering: canvas) surface(at:)asks with a point of the room. The surface under a click - A flat surface from any depth frame.
framegrows a plane from one sample of an.surface( atColumn: row: ) RGBDFrameand returns aDepthSurface: 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-videocarries it beside the sketch's instruments. Setrecording.volume, orrecordingfor the silence it had before. Its sound.isMuted = true - A recording names the frames it lost.
recordinglists each dropped frame with its time and why, beside.droppedFrames droppedFrameCount. A recording - A path cut as finely as you say.
pathand.contour( tolerance: ) pathflatten a path's curves to within a distance you name, for a shape made once and drawn enlarged:.shape( tolerance: ) pathfor one drawn at ten times its size. Path.shape( tolerance: 0.01) - Lygia Pape, a new artist in the Recreations.
Tecelaris a black woodblock with thirty-one white lines cut into it, eighteen of them turning a right angle, after her print of 1957.Tteiais 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.
EspiralDeArquimedesrules the circles that find a spiral of Archimedes, then sends a yellow disk along it.IdeiaVisiveldraws 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
PoemandDuals.GreenModuleis a painting of colored bars that lock together with half circles, each sliding along its side.TrajectoryOfArcheslaces 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
FiftyPointsandArcsCirclesGrids.LinesToPointsOnAGriddraws the seven walls of Wall Drawing 273, red, blue, and yellow lines to points on a pencil grid.LocationOfATrapezoidfollows 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
InterruptionsandDesOrdres.LettresDeMaMerewrites her wordless letters, each line calm at its start and restless at its end.HommageADurerjoins 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
MansionDelAguaandSimbiosis.LaCiudadPerdidais a city of small lit blocks that sinks into its ocher ground and is found again.RojoAzulAmarillois 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.
Currentis redrawn after the painting: one curve repeated across the board, measured from pictures of it. Two homages join it.MovementInSquaresis a checkerboard whose columns narrow to a fold.Cataract3is 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
CircunferenciasandFocos.Tramaweaves one family of circles through two rectangles of ruled lines, and its moiré flows.CajaGenerativais 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
OndulacionesandRightOff.PinturaNo9is his straight-edged canvas of 1969, painted again each lap in coats, with tape over the black and white.Integralesis 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
StructureandLines.GrayStructureis his first Structure, placed by hand under one rule about neighbors and painted a tone at a time.Macrostructurecuts 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.
LaSerpienteis one line of black steel broken at sharp angles, walked through.PoemaPlasticowrites 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.
showsCaptureControlsturns 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(picks the format by the extension. One frame as a pictureto: "frame .jpg") - 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(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.gaussianBlur( radius: 12)) 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
.resizablecanvas still fills the screen. The canvas on the screenollin phonetakesimport 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-appdoes the same. What comes alongA 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
strokeon 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 shapesCurves are cut by how much they bend. A curve from
drawShape { },drawCurve,drawBezier, aPath, an arc, or an imported SVG keeps its facets under a tenth of a pixel, and one drawn underscaleis cut for the pixels it lands on. APath's points can be more than before, never fewer. PathPlain 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
.a4writeswidth="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, soCanvasSizeis no longer true. Vector: PDF.a4 == .size( 595, 842) drawPolygonfills 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. drawPolygonRecordings 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
PhoneWallTilesandPhonePosterlet 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.
stopRecordingandSessionRecorderhand back where the take went. The closure takes a.stop SessionRecorder(.Destination .photosor.file(path)) where it took aURL, and it runs withnilwhen nothing was recording. Read the path withif case. From a sketch.file( let path)? = kept
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. NoCamera.Deviceopens it now:.defaulttakes the built-in camera, and.continuityfinds an iPhone listed as an external camera. Camera DepthOcclusiondraws 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
.alongPathgradient 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
backgroundwiped, and a line of no length stay out of the file. What SVG export records - Layers, combine blocks, and
hollowreach the vector files. A layer is written where it is drawn back, placed and cut as its picture was. A combine block or adrawSDFfield is one traced path, and a hollow shape is its band. What SVG export records - Blend modes in SVG and PDF.
blendModeis written asmix-blend-modein 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
Rampkeeps 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
scalelands 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 readtranslate(. Drawing on a real surface0.5, 0.2, 0) - A take of a canvas that fills the window keeps its frames. A
.resizablesketch'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(. 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. Phoneplaying: PhoneRecording( path: )) - 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.Plane3is the surface as a value, andray.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(lays an image or a layer on four points of space. The_: topLeft: topRight: bottomRight: bottomLeft: ) PhoneWallTilesandPhonePosterexamples use both. Surfaces - The phone's camera as a 3D camera.
device.latestCamerasays 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,
deviceis the camera's own picture, sent up as video once a sketch reads it..latestCamera? .picture 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)besidedevice.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. ThePhoneViewfinderexample stands blocks where you tap. Phone
Vision
- Found things held steady.
@Steadied var objects: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.[Detection] = [] $objects.thingsnumbers each one, and a type of your own joins throughSteadiable. 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--photoit behaves asCamera.orStilldoes. Vision isLiveon every feed.feed.isLiveistruefor a running camera, a captured screen, and a phone on the cable, andfalsefor a film, a still, and a recording. A feed fromCamera.ororCamera.orStillturnstruewhen the camera takes over. Vision
Geometry, simulation, and 3D
- A chain that learns a picture.
MarkovGridlearns small pictures, written as rows of any value, and writes new grids with the same local habits:nextRows(for a whole field,_: columns: ) nextRow(columns:)for a strip without end.ordersets how many cells around a place it reads. ThePatterns/MarkovGridexample writes a town, a maze, and a wall. MarkovGrid - Points spread evenly over a sphere.
spherePoints(returns exactly that many points on a sphere, each about the same distance from its neighbors, with no crowding at the poles.count: ) hemispherePoints(is the upper half, a dome. Both take acount: ) radius, and nothing in them is random. Points on a surface - Noise with nothing cut off.
noise(reads the field beforex, y, clamped: false) noisecuts 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.signedNoiseand the looping forms take the label too. Noise - Removing many particles at once.
worldtakes a list out of a physics world in one pass, with the springs attached, where a hundred single removals each read the whole world..remove( particles) worlddoes the same for a list of springs. Physics.remove( springs) - One mesh field in two views.
drawMeshField(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. Instancingfield)
Running a sketch, and the website
- The files a launch names.
launchFilesholds the files typed on the command line beside the flags, as paths:swift run MySketch photogives.jpg --export out .png ["photo. A flag's own word is never read as a file, and under.jpg"] ollin runthe sketch's source is left out. Input - A runner says when it records a take.
runneris the twin of.isRecordingTake isReplaying, for a host that shows it. It turns false by itself when the take ends: atfinishTake(), when a replay starts, and when the sketch is swapped. Record and replay - Why a Bluetooth link dropped.
device.lastErrorsays why the link to a device last dropped or would not come up, in the radio's own words when it gave any. It isnilagain once the device is back, and after adisconnect().device.nameisnilwhile 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 sitewrites it as404.htmlwhen the site knows its address. The reference offline
Examples
- A second visit to John Whitney. Two more homages join
Permutations.Arabesqueis a ring of 360 points all moving right at whole-number rates, stopping at each fifth of its cycle to turn over.Matrixis 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.WalkThroughRasterlays one chain of signs into a raster along four walks, after his program of 1966.RandomPolygonis 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.HappyPlaceis a ring of nodes that step toward their friends and away from everyone else, the friendships laid as sand.SandTraveleris 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
ObszarandLosowanieDwiemaKostkami.StoZdarzenthrows a hundred turned squares, one to a cell, and grows them through the sides of his series.GraNr1plays 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
MeemandRoots.ChessmenOnestacks rectangles and half circles into four rows of chessmen, each row a tier taller than the last.LoveLetterOnewrites 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
PhysichromieandChromosaturation.InductionChromatiqueis a panel of blue, black, and white lines built to bring out a yellow no pixel holds.Chromointerferenceslides 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
VibracionandPenetrable.CuadradosOlivaYNegrostands sixteen squares off a ground of fine lines, where a black edge over a black line disappears as you move.Extensionis 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, andRelieveLacado.ImagenRitmicaPorRotacionis the motor piece of 1971: a folded mirror turning in a painted well, each reflection worked out as geometry.InteraccionLinealis 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
RingsandColumns.RedAzaleasis three canvases of red marks that come apart from left to right and dance in place on the beat, never touching.GrassyMelodicChantis 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
CosmosandPosibilidades, after two more subseries of his one structure.Diagonalesweaves bands of yarn along the two diagonals, with four ways for a crossing.CodigoDeBarrasdeals 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
RegistersandDiagonals.Strandsis a ruled sheet of the 1970s whose bent ink strands keep every corner on a crossing of line and guide.Reflectionis 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.
MansionDelAgualays olive sheets one over another, each casting its shadow, and lets the light drift.Simbiosisstarts 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.
TorresDeSatelitestands 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.Mensajeis 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 backgroundinside 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 lastbackgroundcolor. To keep a picture across frames, usemakeFeedback(). Layers composeunder a transform draws where the calls would. Acomposeblock undertranslate,rotate,scale, orsymmetryapplied 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(orscale: ) .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.schlierenstep by a canvas pixel, so a slope is as steep and an edge carries the same ink at any scale..antialias,.grain, and.jpegstill work on the layer's own pixels. Effects - A measured field and the patterns read canvas pixels too. On a scaled layer
.distanceFieldreports its distances, and takesmaxDistance, in canvas pixels. So do the sizes of.defocus,.light, the.anaglyphcombine,.rust,.verdigris,.terrazzo,.scratches, and the pulsing border's margins. Effects - Tone filters take grays as written.
threshold,levels,solarize, andlumaKeyread a level as the gray a sketch writes:threshold(0.5)cuts atColor(white: 0.5), where it cut at 0.735. To keep an old cut, pass the level throughColor. A bare.linearToSrgb( _: ) lumaKey()now drops only what is nearly black. Effects - A negative, a posterize, and a contrast work on written grays.
invertturnsColor(white: 0.25)intoColor(white: 0.75),posterizespaces its steps evenly as seen, andcolorGrade(spreads grays aboutcontrast: ) Color(white: 0.5). For the old negative or contrast, usechannelMixer, which works on stored light.levelsno longer cuts a highlight past white down to white. Effects - A map is read as its colors were written.
.displaceand the.vectorfield of.lineIntegralConvolutiontakeColor(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 overColor(white: 0.735)goes back to 0.5. Effects - A mask and an angle field read grays as written. A
.maskofColor(white: 0.5)keeps half the layer, where it kept 21%, and.angle(turns:)readsColor(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 asColor(. Effectswhite: Color .srgbToLinear( g)) .normalMapwrites the usual normal-map color. A flat area isColor(, a deeper blue than before, and the result feedsred: 0.5, green: 0.5, blue: 1) .displaceand the.vectorfield as it did. A shader of your own that reads its red and green now reads them throughlinearToSrgb. EffectsmotionBluris one length at any angle.distanceis 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 sidewaysdistanceby 16/9 to keep its length. Effectscoloramacolors 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 aShader. Effectskaleidoscoperepeats 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, asangle: 0says. To keep an old wheel, draw the picture into its layer underrotate(.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(is the old cost and the old loss. Effectsprecision: .float16) - 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(is the old cost. Accumulationprecision: .float16) dither(levels:)uses the shadesposterizedoes. Four levels areColor(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. Effectswave,perturb, anddisplacemove 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
imageon 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 undercastShadows()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 aRay3. It returned a tuple,(origin:direction:)..originand.directionread as before, so only a destructuringlet (o, d) =needs rewriting. It also answers under a camera built from a real lens (Camera3D), where it returned.intrinsic( _: ) 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
unow runs the other way round, a strip'svcounts from its second line, and an end cap is upright. For the old coordinate, read1 - uor1 - v. Sweeps - A picture on a sphere reads the right way round. An image on
Mesh.sphereread 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, mapuvstoVector2(and texture with0.75 - $0 .x, $0 .y) wrap: .tile. 3D - A sphere's points start at the back. Code that picks a ball's
positionsby 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, androtateY(-.pi / 2)turns it back. 3D - A heavy 3D field draws in several passes. A
drawSDF3Dfield 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 undercastShadows()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 nouse(_:)was called, souse(_:)beside it chooses the mode under the picture. A sketch that called both and wants Sketch mode drops itsuse(_:).statesays whether the phone's screen is the sketch's. Phone.isShowingSketch
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
problemislastErroron the feeds.DataFeed.problem,PushFeed.problem, andWeather.problemare nowlastError, the word every other type uses for what last went wrong. Rename the reads; what they hold is the same. Live dataAudioPlayer.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 apause(), and still starts from the top while playing, afterstop(), and once the file has played out. Callstop()first for the old restart. AudioMIDIOutputthrows 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.open( matching: ) MIDIErrorand opens nothing, so a later.noDestination openfinds the device once it is plugged in. MIDI- The arpeggiator's hold keeps the whole chord. With
latcheson, 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, andplayingis that chord while it latches. Composition - A recipe names the commit its binary was built from.
ollinwas wherever the framework's checkout stood when the export ran. It is now the commit the running binary was built from, withollinCheckoutbeside 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 indraw(). 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.previouson 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.
withTargeton a filter's or a combine's result, a generated pattern, or a layer'sdepthdropped 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
motionBluris 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.levelsnow counts the shades each channel keeps, black and white among them. Effectscontourleaves 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. EffectsgridLinesdraws only its lines. A faint second line showed at some cell edges, and aweightof 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(flipped its first cell, socount: mirrored: ) tile(was the picture turned half round. The first cell is now the picture as it is, and its neighbors are its reflections. Effectscount: 1, mirrored: true) - See-through colors in the patterns and the ink filters.
checkers,gridLines,bars,noise,cellular,gaborNoise,crosshatch, andlineScreenwrote a see-through color at full strength, which composited as added light.hatchingandxdogleft a clear background's color in the soft edge of their ink. Each now holds its colors under their alpha. Effects glitchcovers 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. Effectsgrainstays 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(is the layer, where it still added its dither.intensity: 0) vibranceunder -0.5 stops at gray, where pure red at -1 came back cyan.oilPaintkeeps a see-through shape's color at its rim, which came back 4% dark. Effects radialBluris 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, andamountis 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 drosteon 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(, a pixel up to twice the reach away still pointed at the shape. Distance fieldsmaxDistance: ) - Every simulation field keeps the precision it is asked for. At
.float32a 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 returnednilfor the fluid, the watercolor, the self-warp, and the datamosh, and afterfield.simchanged it returned the old sim's state. It reads the numbers behindimage. 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 withfalloff: 0, andbrushwork(each draw what the setting beside them draws. Effectssharpness: 0) - 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 isnil. 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
previouscame 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(), orcameraMove()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.
BodyTracker3Dnow finds and frees them as it runs, on macOS.BodyTracker3Dturns that off. Vision.freesLeftoverBuffers = false - The camera takes over after the first Allow. On a Mac never asked for its camera, a sketch made with
Camera.orStillshowed 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 aSaliencyTrackeror aSaliencyanswered 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.
waitingMessageread "Connecting to the phone…" beforestart()and afterstop(). It now reads "Call start() to read the phone." onPhoneDeviceandRecord3DDevice. 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 apressureset 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 secondstart()under the prompt asked twice, and onAudioInputthe second answer raised an exception. A failedAudioInputstart 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
rateset during an export no longer plays the clip. Settingplayer.ratewhile 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, anoLoop()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.
--replayon a sketch that callsnoLoop()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 aredraw(), aloop(), a reload, or the wake arriving first. Each now waits until the reason that holds the loop lets go. Installation --export-plates --profiletakes 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 runor OllinLive,Audio/Tuner,Audio/FilePlayer,Video/VideoPlayback, andVision/ContourTracetook the sketch's own.swiftfile 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 ransetup()on two frames in a row. A replay's jump back now runs the same firstsetup()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% | pausedfor 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
mouseIsPressedas 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.
bonacicfinds Vladimir Bonačić anddorafinds 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(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.ink( feather: pooling: amount: speed: seed: )) StrokeMark. Marks.Sample .speed - Lines drawn by hand.
handDrawn(on awobble: bow: overshoot: seed: ) Contour, aShape, or aStrokeMarkreturns 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.
RenderTargetreturns a layer's pixels as an.snapshot( ) Image, one frame late. Anything that reads a picture can now read what the sketch draws. Effects - A slit scan on the GPU.
makeLayerHistory(keeps a layer's last frames, andcapacity: ) Filterbuilds each pixel from the frame its delay names. Effects.slitScan( _: delay: ) - A glyph mosaic of a layer.
drawGlyphMosaicandglyphMosaic(of:)take a layer'simage, so a moving drawing can be set as text. Glyph mosaic - An accumulator in single precision.
makeAccumulator(keeps the very faint marks a half-float pass drops, at twice the memory. Accumulationprecision: .float32)
3D
- A camera for each layer. A camera set inside a layer's
withTargetblock 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-tracednow 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
fogoraerialPerspective, a volume is fogged like the solids around it. Volumes - A flat field stood up.
extruded(depth:)turns any 2DSDFcomposition into anSDF3Dslab that joins other 3D fields, casts shadows, and voxelizes. Combinators - Gesture marks in space.
GestureMarkturns a drawn gesture into a mesh, and.tube( sides: wobble: wavelength: ) GestureMarkstrings instances along it. Gesture marks.solids( spacing: seed: ) - A layer as an environment. A
RenderTargetis aVideoFeed, soenvironment(lights a scene with the sketch's own drawing. 3D.feed( layer)) - A sample 3D model.
import OllinSampleModels, andSampleModelgives a sketch a model to try materials, lights, and camera moves on. Sample models.duck .load( )
Geometry and simulation
- Finding boxes.
BoundsIndexanswers which of thousands of rectangles hold a point, overlap a rectangle, or overlap each other.Rectanglegainsintersects(_:),intersection(_:), andunion(_:), andBox3gainsintersects(_:). Bounds index - Neighbors in space.
SpatialIndex3DisSpatialIndexforVector3: the nearest point, the k nearest, everything within a radius, and everything inside aBox3. Spatial index - Matching two sets at the least total cost.
Matchingpairs two sets so the costs add up to the least possible. A cloud of dots gathers into letters along paths that never cross..optimal( _: _: cost: ) Matching.greedyis the quick comparison. Matching - Soft bodies that rub, meet rigid bodies, and fold. A 2D
SoftBodyhasfriction, and it pushes and is pushed by a rigidBody. WithcollidesWithItself:, a long outline folds onto itself and no longer passes through. Physicstrue
Sound
- An echo long enough to be a loop.
Delay.timeruns to sixty seconds (Delay.maxTime). Each repeat lands on its exact sample, and turningtimewhile the echo sounds no longer clicks. Synthesis - The sketch's sound as a file of its own.
--export-sequencewritessoundtrack.wavbeside its frames, and--export-audio FILE(OllinApp) writes the sound alone. A.exportAudio --skipstretch is now dropped from the sound too. Synthesis
Windows
- A sketch over the desktop.
--overlay, orOllinApp, floats a sketch above every window. Where the canvas is clear (.runAsOverlay { MySketch( ) } background(.clear)) the desktop shows through, and a click there goes to whatever is underneath. Overlay - A second window for a layer.
makeWindow(gives a layer a window of its own: the piece on the projector and the controls on the laptop. The returnedshowing: title: ) SketchWindowreports 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
ParamChoicestype that declaresparamChoiceGroupsgets a submenu for each group.Easingdeclares its families, so a curve's menu is twelve rows instead of thirty-two. Parameters - A description on a parameter.
help:on any@Paramis a sentence about it. The inspector shows it on hover and--list-paramsprints 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=1in 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.
lastErroronOSCReceiver,TUIOReceiver,DMXReceiver, andEtherDreamFindernames the port another program holds.isRunningturns false, where such a receiver used to read as running, andstart()tries again. - A publisher says where it is in its life.
phaseonSyphonServer,VirtualCameraServer, andPhoneScreenis onePublisherPhase:.waiting,.publishing,.unavailable, or.stopped.SessionRecordersays why a take's file could not be finished..lastError
Examples
- Carlos Cruz-Diez joins the recreations.
Examples/hasRecreations/ CarlosCruzDiez Physichromie, a panel of blades whose picture depends on where the pointer stands, andChromosaturation, three rooms of colored light the eye adapts to. - Eduardo Terrazas joins the recreations.
Examples/hasRecreations/ EduardoTerrazas Cosmos, his structure laid as a tabla of wool yarn, andPosibilidades, a sheet of small drawings that each change the same diagram one way. - A second visit to Hiroshi Kawano.
Examples/gainsRecreations/ HiroshiKawano SimulatedColorMosaicandFlow. 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/, andOverDesktop 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
strokeWeightslightly. 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.
.addno longer pushes a layer's alpha past 1, so added lights drawn back over a picture do not turn it black..multiply,.darkest, and.subtractadd 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
backgroundis 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 withnoClear()and paint a see-through rectangle each frame. - The five distortion characters do what their names say.
.softClip,.overdrive,.bitCrush,.ring, and.squeezewere 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.softClipfor its echo, add aDelay(time: 0.357)beside it. Synthesis - A camera set inside a layer stays in the layer.
camera(_:)insidewithTargetused 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.
bounceis on, so every medium is brighter in its depths. Setbounce: 0for the old picture. - The ground under a sun-lit sky is lit by the sun. Below the horizon of a
.skywhose 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.
frictionis 0.3 unless you give one, so passfriction: 0for the old slide. Rigid bodies no longer pass through. --paramrefuses 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
strokeon adrawCircleor adrawRect) 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
.addmarks 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
curveThroughring 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(and its eight siblings now draw what the same operators on anradius: ) SDFvalue draw. SlitScannames its own method. The note it prints for a skipped frame saidpush, and the method isappend.
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
voxelizedfield, 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
emissiveColororMesh.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
drawSDF3Dfields 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
MeshFieldin a layer of another shape lost copies at its sides. Instancing - A textured OBJ drew its texture upside down. The reader now flips
vtas 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, andmakeParticleLeniacrashed on any seed below zero. - A face's strongest expressions come in one order in every run.
PhoneFacelisted two shapes at the same value in a different order from run to run..strongestBlendShapes( )
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.5was refused. A sketch that amplifies tiny differences can draw a different picture for the same seed. --list-paramssays the step of a whole-number parameter.8...128, step: 8now prints8...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
packageaccess level compiles there too. - OllinLive keeps a shader error up until the shader is fixed. Saving a
.metalfile 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 withisRecordingtrue. 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: falsecan 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.
hasStopConditionandlastErrorsay the DAC is stopped. Nothing restarts by itself:arm()clears the stop, throughEtherDreamDAC. Laser.clearStopCondition( ) - A web socket a server closes says so.
PushFeed.problemnow 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(: 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. Markstooth: softness: roughness: palette: seed: ) - Bristle, dry brush, wet, and oil strokes.
.bristlesstreaks two pigments along the path, and.dryBrushruns dry on the paper's grain..wetdrags the paint under it, and.oillights 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..impastoand.knifeare thick paint,.washglazes what is under it, and.gouachecovers it. It applies todrawShape,drawPolygon, and the built-in shapes with a simple outline.noFillMedium()returns to a flat fill. Marks - Fills of chrome, glass, and stone.
.chromereflects a studio and the drawing around its rim,.glassbends the drawing at its rim, and.facetedGlassbreaks it into facets..rock,.marble, and.sandare stone and grains. The textures move with the shape undertranslateandrotate. A vector export writes the fill flat. Marks - A shader stroke knows where it is on the ribbon. Under
stroke(_ shader:),info.arcLengthis the distance along the path,info.acrossthe place across the width, andinfo.halfWidththe local half-width, besideinfo.alongandinfo.distance. Color - Shaping the press.
StrokeMarkignores a press under it, and.pressureDeadZone pressureCurveraises the press to a power.maxWidthChangelimits how fast a recorded mark's width may change, so a sudden press swells the mark. Marks - Marks built from one gesture.
GestureMark(turns one drawn path and its width into sixteen families of marks a plotter can draw. They aremark, width: ) cloud,chain,spikes,dashes,dots,strips,feather,leaves,fringe,pixels,facets,lanes,spiral,strands,fragments, andwiggle. Gesture marks - A gesture's pieces, and its outline. Each family returns
GestureMark.Pieces, outlines to fill or lines to stroke, and.shapemerges a list into one silhouette.hull()andblob()enclose a whole gesture, andfigure(_:)is the shape its two ends span. AnyShapecan bespiked(_:height:)orwobbled(by:scale:). Gesture marks - A shape cut by a line.
shapegives a shape's two sides of a.split( along: line) Ray2,clipped(keeps one side, andto: HalfPlane( point: inward: )) clipped(within:of:)keeps the band around a line. Holes are kept. Geometry - Hatching that fits each shape.
Hatching(spaces each shape's lines across its own extent, the whole number nearest its height overcentersLines: true) 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(hands a particle step up to four pictures, read in the snippet as_: custom: textures: ) picture(. Particles can steer by a word, a shape, or a blur the sketch draws. A kernel of your own reads up to eight throughindex, point) compute(. See the_: buffers: textures: count: params: ) Compute/example. ComputeSteeredByAPicture - One vertex a particle.
drawParticles(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.buffer, style: .light, maxSize: 1) LineSpraygains it with no change to the sketch, and theParticlesform takes the same label. Depth of field
Color
- Palettes built around one hue.
Palettereads a key color's hue and builds a.scheme( _: key: count: jitter: seed: ) .monochrome,.vividAndDark,.vivid,.pastel, or.darkpalette around it, with a seeded jitter.Coloris a hue's most vivid displayable color. Color.mostVivid( hue: ) - A stepped ramp.
Rampholds each color flat up to the next stop, for a poster-flat gradient..stepped( [ .red, .orange, .yellow]) Rampplaces the bands,.stepped( stops: ) isSteppedsays which kind a ramp is, andreversedkeeps the bands.Ramp.holographicis eight flat bands in the order a grating spreads white light. Color - A ramp over wavelengths.
Rampplaces the pure hues of the wavelengths evenly, so.wavelengths( from: 400, to: 700) 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.
Coloris the color a clear film that many nanometers deep shows, matching the.interference( thickness: 420) .thinFilmfilter.Spectrumis the reflectance curve behind it. A.interference( thickness: ior: ) Rampof it through.alongPathcolors a stroke in a soap film's order. SeeExamples/. SpectrumColor/ PearlStrokes
Effects
- Wipes in any order.
Combineturns one layer into another as.wipe( _: progress: feather: ) progressruns from 0 to 1, andFilterbrings a layer in over whatever is behind it. In.wipe( _: progress: feather: ) compose { }it is.wiped(. Both cross to a web page. Effectsto: _: progress: feather: ) - The order a wipe follows. A
WipeOrderis a straight edge (.directional(), a growing circle (angle: ) .radial(center:)), a clock hand (.angular(), blocks (center: angle: ) .cells(), or a dissolve (columns: rows: ) .noise(size:seed:)). Reshape one with.folded(),.tiled(_:),.bands(_:),.shuffled(seed:),.checker(),.diamond(), or.reversed(). Effects - Copies of a layer.
Filterlays 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..repeated( _: count: scale: rotation: opacity: hueShift: jitter: seed: ) facesOutturns the copies on a ring to face out. It crosses to a web page. Effects - A glowing edge.
Filterlays 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.edgeGlow( width: colors: spots: spotSize: pulse: bloom: center: phase: ) - A worn videotape.
.vhs(plays a layer off a worn tape: lines jitter sideways, the bottom tears where the heads switch, and the color trails behind edges. Feedsmear: jitter: damage: amount: phase: ) phaseyourtime. Anamountof 0 leaves the layer untouched. Effects - A JPEG at a quality, without a file.
.jpeg(runs the format's own block transform on a layer: flat tiles with ringing toward quality 10, and the color at half resolution. Withquality: subsamplesChroma: ) subsamplesChroma:the color keeps full resolution. The layer's alpha is kept. Effectsfalse - Tilt-shift and a progressive blur.
.tiltShift(keeps a band sharp around a line and blurs away from it, so a view reads as a model.focus: angle: band: falloff: radius: ) .progressiveBlur(fades a blur in across the layer, matchingangle: start: end: radius: ) .gaussianBlur(where it is full. Effectsradius: ) - A light leak.
.lightLeak(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. Effectsanchor: spread: streaks: colors: flicker: intensity: phase: seed: ) - A page peeling.
.pagePeel(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. Effectsamount: corner: radius: shading: sheen: shadow: back: ) - Hairline scratches.
Generatordraws 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.scratches( count: thickness: length: angle: wobble: flicker: color: phase: seed: ) - Datamosh.
Simis a field whose blocks refresh from the drawing or hold, a held block dragging its last contents along the drawing's motion. The.datamosh( amount: blockSize: motion: drift: wander: period: seed: ) Effects/TapeAndLensexample 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(prints a layer as a stereo pair for red-and-cyan glasses.separation: ) scenereads a depth map instead. A near thing then stands off the page and a far one sinks in, by its distance from.combined( with: scene .depth, .anaglyph( )) focus. Effects - A heat mirage.
.mirage(shifts every row above a horizon sideways by a wavering amount and mirrors the picture below it, the shimmer over a hot road.horizon: faults: amount: phase: ) Filteris the row shift, for a sketch that draws where a row went. Effects.mirageShift( y: ) - Schlieren.
.schlieren(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. Effectsangle: amount: ) - Bubble wrap.
.bubbleWrap()lays a sheet of bubble wrap over a layer, or over the whole frame as apostProcess. 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 areRamps,.chromeSkyand.chromeFloorby default. It exports to the web page. SeeExamples/. EffectsEffects/ ChromeLettering - Holographic foil.
.holographicFoil()fills a layer's shape with crumpled foil: a stepped rainbow that breaks at every crease, under a light atlightAngle.phasesweeps the bands, sophase: timeandlightAngle:make the sheet move.time * 0.3 reliefpresses the layer's own brightness into the foil. SeeExamples/. EffectsEffects/ CrumpledFoil
Textures and geometry
- A sheet of facets.
FacetFieldlifts a triangulation into flat faces. Each knows itsnormal, itstilt, and how squarely it faces a light (facing(_:)), andedgeslists every crease once. Build one withFacetField,.grid( in: spacing: seed: height: ) FacetField(, orpoints: height: ) crumpled(, and lift it again within: spacing: crinkle: seed: ) lifted(by:). Voronoi & Delaunay - The foil reads the facets you hold.
.holographicFoil()takes aFacetField, its own by default or one you hand it. The creases you stroke fromsheet.edgesthen 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.
WoodGraintraces wood grain around its knots, and.trace( in: ) Frost.grow(along:)stands hoarfrost needles along an outline.Crackle.grow(in:)walks the veins of cracked wax, andIkat.stripes(in:)dyes stripes with stepped edges. See thePatterns/example. TexturesLineTextures - Chromatography rings.
Chromatographyand.scatter( in: count: radius: ) .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. TheEffects/Phenomenaexample 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, andgenerate(a green crust over bronze. The blooms are a.verdigris( )) Patinaa sketch can hold, fromPatina. Each.scatter( in: count: radius: seed: ) Blobhas itsoutline,masses, andblistersas geometry, and the generator paints the blooms it is handed. Textures - A terrazzo floor.
generate(lays chips of stone in a binder, in three sizes, each clear of every other. The chips are a.terrazzo( )) Terrazzoa sketch can hold, fromTerrazzo. Each.scatter( in: chipRadius: density: gap: tones: seed: ) Chipis aShape, and the generator paints the floor it is handed. Textures - A crease in a heightfield.
sheetfolds a.creased( along: [a, b], width: 0.03, amplitude: 0.3) Heightfieldalong a path, and creases stack into a crumpled sheet.Heightfieldis the crease's own profile. Terrain.creaseProfile( at: )
3D
- Any 3D field as blocks.
SDF3Drebuilds 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.voxelized( size: gap: jitter: seams: occlusion: seed: ) - 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.hologramis the strength,gratingSpacingthe groove pitch in nanometers, andgratingRotationturns the grooves. A path-traced export shades it as the metal under it. SeeExamples/. 3D3D/ Materials/ Hologram
Export and output
- Stroke media on a web page.
--export-webcarries 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.
separationmoves 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.misregistered( offsets: rotations: ) - A sketch is the whole app on a phone or a tablet.
@mainon a sketch now starts an app on iOS, throughSketch.main()andOllinApp.run(_:). Its@Params open in a panel or a sheet.ollin new --kind ios-appwrites such a sketch, andollin phonenow takes one marked@main. The sketch on the phone - A sketch's
--help. Running a sketch with--helpor-hprints its name, how to run it, its parameters as--paramtakes them, and every flag it reads. It opens no window, writes no file, and does not runsetup(). Export
Examples
- Jesús Rafael Soto joins the recreations.
Examples/hasRecreations/ JesusRafaelSoto Vibracion: wires hung before fine stripes flicker as the pointer moves the viewer. It follows Vibration (1961), Vibration jaune (1965), and Grande écriture (1972).Penetrablewalks a visitor through the hanging tubes of The Houston Penetrable. Both export SVG. - Roman Verostko joins the recreations.
Examples/hasRecreations/ RomanVerostko Pathway, after the procedure he published in 1988: one brush gesture, drawn again thousands of times behind itself as fine pen strokes.Cyberflowerrepeats 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/adds two works.Recreations/ DoraMaurer FiveOutOfFourfollows 5 out of 4 (1975 and 1979) and 4 out of 3 (1976).Overlappingsfollows the shaped canvases of 2007 to 2012: congruent sheets on one bentCoonsPatch, their overlaps mixed as layers of paint. Both export SVG.
Changed
- The folds of
.paperTexturelook different. Itsfoldsare now straight seeded creases lit on one flank, shaped as aHeightfieldcrease 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-PicturesYouSolveis now.md 22-PicturesYouSolve, through.md 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
Volumesexample'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.fractureddid, 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
Meshlit the room under.surfaceMapped( emissive: ) 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
fogand a caption, or anything inwithOverlay, 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.standardis 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'sfacing, a rope'sradius, and the 2D world'sboundsrefuse a bad value and keep their own. Bad means not a number, an infinity, or past a billion units. A ragdoll'spose(from:)ordrive(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(. A layer that draws a filter's result now waits for it. Effectsb) { drawImage( a .filtered( .invert( )) .image, 0, 0) } - Hatching no longer skips its first line.
Hatchingand 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.lines( filling: ) displayHeadroomis 1 unless the sketch asked for headroom. A.standardor.widesketch beside another window holding headroom read that window's value. It now reads 1 there, and only an.extendedsketch reads the screen. Color output- A live soft proof on a wide canvas proofs the canvas's own colors.
Filter.softProofwith a prooffrom: .displayP3gave 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
@Parampicker withstyle: .segmentedand 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(keeps every pixel a hard square when a picture is drawn larger than it is..nearest) .linearstays the default. It is drawing state besidetint, restored bywithState { }, and an--export-webpage 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.reinhardand.acesturn it yellow. A web page carries it, andRendering/cycles through four curves. HDRToneMapping
Geometry and simulation
- A shape bent into a curved patch.
CoonsPatchis a four-sided region with curved sides, read withpoint(u:v:).Contour, also on.warped( from: into: ) Shape, bends an outline from a rectangle into one, so lettering in a box lands on a waving banner. SeeShapes/WavingBanner. Geometry - Bending outlines.
Contourbends an outline to follow one curve the way it followed another, so lettering on a straight baseline rides a wave..warped( from: along: ) pulled(draws the part near a point toward it. Both are ontoward: amount: radius: ) Shapetoo. SeeShapes/. GeometryWavyLettering - Smoothing, splitting, and fitting an outline.
smoothed(averages an outline and leaves its corners, andneighbors: keepingCornersOver: ) split(cuts it at them.atCornersOver: span: ) fitted(tolerance:)traces a dense outline with a few cubic curves as aPath(Schneider's method).Path.cubicsreads any path back as cubic Béziers. SeeShapes/. GeometryTraceToCurves - Packing rectangles.
packRectangles(fits rectangles of given sizes into one bin without overlap. The_: in: padding: allowsRotation: ) RectanglePackingit returns says where each went and which did not fit. It is MaxRects with the best short side fit (Jylänki's tightest variant). SeePatterns/. Packing rectanglesPackedPhotos - A soft body from any outline.
Worldturns a closed.addSoftBody( from: ) Shapeinto a squishy body in the 2D physics world that keeps its area and its corners.stiffness,bend,pressure, andshapeMemoryset the feel. Soft bodies keep each other out, and rigid bodies pass through for now. Physics - What a soft body reports and takes. A
SoftBodyreads itsshape,area,center, andvelocity, takespush,applyForce, andmove(by:), and inflates when itsrestAreais set. WithparticlesCollideon, loose particles are pushed out.Physics/Blobsis rewritten over it. Physics
3D
- A cloud a kernel writes.
ComputeTexture3Dis a box of samples on the GPU that your own compute kernel fills throughcompute(_:writing:).drawVolumedraws it in place of aVolume.PingPongTexture3Dpairs two for a simulation, stepped bycompute(._: reading: writing: ) Examples/fills its plume from3D/ Effects/ Volumes 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 withoutcastShadows()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.composingTextholds the reading until then, andtextTyped()fires as text arrives.Examples/Input/ TypedText - Editing keys and the caret in typed text. Return arrives as
"\n"and Delete as a backspace, whichcaptionreads as taking a character away..append( typing: typedText( )) caretPositiontells the input method where the line is.keyandkeyPressed()are unchanged. A take records the text. - Pinch and turn. Two fingers on the trackpad reach
draw()aspinchScale, a factor, andturnAngle, in radians the wayrotateturns.size *= pinchScaleandspin += turnAnglekeep a shape under the fingers.fingersPinched()andfingersTurned()fire once per event. Input - A pinch drives the view and the camera.
viewControl()zooms with a pinch about the pointer andcameraControl()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(is a small graph in the inspector whose points drag, read as[( 0, 1), ( 0.5, 0.8), ( 1, 0)]) falloff(t).count:bounds its points.ResponseCurvenever overshoots them (after Fritsch and Carlson), and.easinghands it to a call that takes anEasing.Examples/Live/ Parameters - A row of bars as a parameter. A list of numbers,
@Param(, is a row of bars you paint by dragging across them, for a step pattern. A list of whole numbers works too.0...1) var accents = [1, 0.2, 0.6, 0.2] - 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,or0.7@0.4, 0@1 --param accents=1,.0.2, 0.6
Export and output
- A still named by its moment.
--at Sstands beside--frame Non every one-frame export, from--exportand--export-exrto the vector files. The frame is S seconds of the sketch's clock at--fps, so--at 2is--frame 120at 60 fps. Export
Examples
- A second visit to Mohamed Melehi.
Examples/gains two sketches where his wave meets the sun.Recreations/ MohamedMelehi Soleilis after the untitled panel of 1975, andVolcaniqueafter Volcanic (1985). The wave travels, the palettes can be edited in the inspector, and both export SVG. - Dóra Maurer joins the recreations.
Examples/is after the Hungarian artist (1937 to 2026).Recreations/ DoraMaurer Displacementsruns the rule she stated for her Displacements: eight colored parts cross a grid one unit a step.QuasiImageenlarges 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/is after the two painters who named Arte Generativo in Buenos Aires in 1959.Recreations/ MacEntyreVidal Circunferenciasis Mac Entyre's circle: families of circles in a disc.Focosis 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 nowopen func setup(: a loader that cannot read its file lets its) throws FileErrorout with a baretry, nottry!. A window reports the error and holds the sketch, and an export fails with it. An override may leavethrowsoff, 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:), andspatialScene(of:)runsetup()for a frame, so they now throw with it. A caller of those adds atry. Sketch CubicBezieris a value of its own.HobbySpline.Segmentis now a typealias of the top-levelCubicBezier, with the samepoint(at:)anddirection(at:).Path.cubicsandContourreturn it too. Every existing spelling compiles unchanged. Geometry.fitted( tolerance: ) - A kept
Shapedrawn 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
@Paramtunes the 2D view live.viewControl(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 wherecenter: zoom: ) resetView()opens. Drawing - A simulation can read a filtered layer, a frame late. A
filtered(_:)orcombined(with:_:)output in aSimField'sinputsused 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
weightcounts under.perLinetoo. ASprayLineorSprayQuadunder.perLine(n)draws itsweight's share ofnpoints, 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
.skyenvironment now lights the scene with a sun where it draws its disc, andcastShadows()throws its shadows. A sketch with a.skyand no directional light changes picture.Environmentdecides:.sunlight( _: ) .automaticyields to a directional light of your own,.alwaysnever does, and.offkeeps 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.MeshInstanceis a.rotation Rotation3Dwhere it was three Euler angles, so a physics body'srotationplaces a copy directly..aboutY(a)spins about y.Rotation3Dcomposes three angles as.euler( x: y: z: ) rotateX,rotateY,rotateZwould, which is whatrotation:meant.Vector3( a, b, c) SurfaceSamplereturns one too. Instancing.alignment( spin: ) - 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) throwsPhysicsError.fullonce the world holds itsmaxBodies. The first four did not throw before, so every 3D sketch gains atryon them, ortry?in a click handler. Physics in 3D - One
dragin both worlds. A particle and a rigidBodynow readdragalike: the share of speed lost every sixtieth of a second, whatever the frame rate. Particle sketches feel as they did at 60 fps.World3Dgains adragtoo, defaulting to the 5% a second every 3D body already lost. Physics - A rigid 2D body slows more by default. At the default
dragit loses 45% of its speed a second where it lost 1%. Setworld.drag = 0for the old coasting, as thePhysics/Burst,Chain,Joints, andRigidBodiesexamples do. A.kinematicbody is never dragged. Physics - A body's own
restitutionwins. The walls of a 2Dboundsand the 3Dgroundno longer carry the world'srestitution. A ball givenrestitution: 0no longer bounces off a default floor. A body that named none followsworld.restitutionwhen it changes.Body.restitutionis readable and settable in 2D. Physics in 3D - A change to
gravitywakes settled bodies, and a spin is not capped. A tilt now reaches a box asleep on the floor, and anangularVelocityof 100 rad/s reads back as 100. Physics in 3D substepsin 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 carriesdragandsubsteps, 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
Limiterlistens ahead, and its sound leaves 5 ms later. It used to flatten every crest over the ceiling. It now listensLimiter.lookaheadahead, so the wave keeps its shape and nothing crosses the ceiling. Synthesis Delayholds its settings to their ranges.timeis held to0...2seconds (Delay.maxTime),feedbackto0...0.95, andmixto0...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
.wideor.extendedPNG 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.widevideo 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 taggedCGImageAlphaInfo, straight alpha, where it was.first 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
Accumulatorlost most of that light once they were bright. EveryLineSpray, anddrawParticles(alone in a_: style: .light) withAccumulatorblock, 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
SprayLinedark at both ends, or aSprayQuadwith no light, gets no points, and under.byLengththe 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 undertemporalUpscaling()andframeInterpolation(. 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 awithMotionmover 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 withMotionkeeps its drawing state inside the block. It saves and restores the transform and style aswithStatedoes, sowithMotion { translate(in a loop places each box from the origin. Eachx, y, 0); drawMesh( box) } translateused 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.texturedshowed 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'simage. 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
drawVolumeis 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.maxBodiesreads back what the world was made with. Physics in 3D
Sound
- A plucked string rings for its
decayat 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 itsdecay, 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 itsdecay. 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.cathedralall 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 anunrenderederror. 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(laid solid pink under the black, in either ink order. A tie now goes to less ink. Print separationsinto: [ .black, .fluorescentPink]) - An absolute proof shows the paper, and the paper is the stock's. An absolute
SoftProofof white came out cyan, and the simulated paper far yellower than the press profile's own stock. White now proofs as the stock. An.absoluteproof shows the paper whether or notsimulatesPaperis set. Relative and perceptual proofs are unchanged. Print color - A video started before an export plays in it. A
VideoPlayertold toplay()in a property's initializer held its first frame for a whole export. The play now carries over to the export's clock.Examples/is rendered again.Vision/ OpticalFlow
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
ObjectTrackingfollows 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 aFaceTrackerbox. The Vision reference listed astop()the tracker does not have: the call isstopTracking().
[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, andEllipsejoinCircleandRectangleas 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:), anddrawEllipse(_:)draw them. Geometry - Where two curves cross. Those three, with
Circle,Rectangle,Triangle, andContour, share thePlaneCurveprotocol.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.
Circlegainsarea,perimeter,point(at:),nearestPoint(to:), anddistance(to:).Rectanglegainsarea,perimeter, andedges, andTrianglegainsperimeterandedges. Geometry - A shader as paint.
fill(shader)andstroke(shader)take aShaderanywhere they take a color. Itsshade(uv, info)runs at every pixel the shape covers, whereuvruns across the shape's bounding box.info.position,info.distance, andinfo.alongplace 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(on aneighbors: ) Contouror aShapemoves 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: .boxis the plain average. Curves - The slope of a fitted field.
RadialBasisreports how its field changes.gradient(at:)is the way uphill for a field of numbers, andderivative(works for any field. For a function of your own,at: along: ) derivative(andat: function: ) 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(, andradius: color: ) .bevel(. They chain like any filter. All six cross to a web page, and so doeswidth: depth: profile: angle: elevation: highlight: shadow: ) .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 withmeasure: .ciede2000. The formula matches the test pairs Sharma, Wu and Dalal published.CIELabbrings in the Lab numbers swatch books give.Paletteand.nearest( to: ) nearestIndex(to:)find the swatch most like a color. Color - A picture's histogram.
Imagecounts a picture's pixels by lightness or by one channel, and.histogram( of: bins: in: ) percentile(_:)reads its working black and white. Color - Shades whose hue drifts.
Paletteand.shades( of: count: ) 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.hueDriftsets how far the hue turns, and a negative drift cools the lights. Color
3D
- Lofting.
Meshand.loft( _: along: at: smoothed: scale: twist: capped: ) drawLoftbuild 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 withsmoothed: false. Sweeps - Hidden-line solids.
featureEdges(draws a mesh as a draughtsman draws a solid. Over the filled faces it strokes only the creases, the boundaries, and the silhouette, atcreaseAngle: ) strokeWeight. Near solids hide the edges of far ones, and every copy underdrawMesh(gets its edges. Hidden-line solids_: instances: ) - Edge weight in world units. The weight of a hidden-line edge is in canvas points, the same at any distance.
strokeWeight(sets it in world units, and_: in: .world) noFeatureEdges()turns the edges off. Hidden-line solids - Volumes. A
Volumeis a box of density samples, built from a function, a list, orVolume.noise.drawVolume(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_: size: medium: ) - What a volume is made of. A
Mediumsetsdensity,color,glow,glowIntensity, andanisotropy, 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 namesdrawVolumeand stops. Volumes
Generators
- A turtle you drive from code.
Turtleis a pen you walk across the canvas.forward,back,left, andrightmove and turn it, andpenUpandpenDownbreak the line.pushStateandpopStatedraw a branch.move(to:),home(), andheadingplace it outright. Each run is aContour, closed afterclose(). Turtle - Noise in three dimensions that loops.
noise(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.x, y, z, loop: ) signedNoise,fbm,signedFbm,ridgedFbm, andturbulencetake the same form. Noise
Export and output
- Motion blur drawn from subframes.
--subframes Ndraws 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 Fsets the opening, else the sketch's ownmotionBlur(, else 0.5. In code:shutter: ) OllinAppand.exportSubframes OllinApp. Export.exportShutter - What a subframe export asks of a sketch. At each moment
timesteps through the opening anddeltaTimeis the time since the last draw.frameCountcounts each moment, so motion counted in frames runs N times as fast. A picture carried between draws, such as anoClearpile 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
.swiftfile of its SwiftPM target, so saving a helper file reloads.ollin MySketchruns a package by its folder, and a bareollinruns 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 processedImages/folder loads through.module. A sketch that imports another target or another package still needsswift run, and the error says so.OllinRun(the--installationhost) andOllinLiveCodingtake a package's folder too. Single-file sketches
Examples
- Anwar Jalal Shemza joins the recreations.
Examples/is new.Recreations/ AnwarJalalShemza Meemis the letter he painted from 1964 to 1968, a disc for its head and a line for its tail.Rootsis 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/is new.Recreations/ HiroshiKawano Designwalks a grid of five colors with a Markov chain counted off his Design 3-1 and Design 3-2.ArtificialMondrianis 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/is new.Recreations/ ZdenekSykora Structureis the rule he and the mathematician Jaroslav Blažek published in Leonardo in 1970 for placing half-disc elements on a grid.Linesis 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, andMotion/.ContourWalkers
Changed
Most of these can change what a sketch draws or sounds like, and the first and third can stop one compiling.
ColorVision.matrixis removed. Every kind of color vision now has two transforms rather than one.applied(still gives the model's result for a linear color. AccessibilitytoLinear: _: _: ) - The color-vision simulation changed. At full severity
Color.simulated(_:)andFilternow 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.colorVision( _: ) MarkovChainis in the core. The chain the music helpers use now lives inOllin, so a drawing sketch can use it without the audio library. A file that imports onlyOllinAudioand uses the chain needsimport Ollinbeside it.learn(takes a table of counts directly. Composition, Random_: after: times: ) - 2D torque takes points, like force.
applyTorquetakes 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 byunitsPerMetersquared 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.
drawCaptionnow 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, andcameraMovereadtarget,radius,elevation,azimuth, andfieldOfViewon their first call only, so a@Parampassed in tuned nothing. A changed argument glides the shot there, and thefrom:forms follow. Once the viewer takes the camera, onlyresetCamera()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
.detailtier 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(with its defaulton: count: ) .blueNoisethinning 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
@Paramholding 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. AwithTargetlayer or awithFieldseed 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:)orperGlyph: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
withOverlayblock or a caption could cover every surface and keep only the sky and the block. It happened over a scene lit byenvironment(, or by an HDRI with its backdrop shown. Effects.sky( ...)) - A camera move starts at its start. The first frame of a
cameraMoveorcameraShowcasemove showed it one step in, and two exports at different frame rates disagreed. Frame N now shows the move at N/fps, astimereads. 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 thecameraMoveit 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 inwithOverlay { }. 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(above 1 turns them up past physical. Causticsintensity: ) - 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
reachthins 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
hearingDistancereaches the file, andunplace()no longer leaves a sound 6 dB down. Synthesis - A struck body no longer clips, and
hardnesscolors the strike. A softer strike now reaches fewer tones, where it pushed the same tones harder. The defaulthardnessofModalBody,ModalBody(shape:), andStruckShape.bodymoves 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
hardnessis now 0.9 for.belland.bar, 0.85 for.drumand.plate, and 0.8 for.glass. Every preset but.woodused to clip through its attack. The struckVoicepresets (.drum,.bar,.chime,.glass) carry gain 1, within 3 dB of.pluckat 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
decayis shorter at high notes,Delay.timeruns up to 2 s, and a particle'sdragis 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 thepostProcessfilters, so a caption stays sharp and untinted. Over anoClear()canvas it never joins the pile. Effects - Part of an image.
drawImagetakes a source rectangle in the image's own pixels, so one cell of a sprite sheet draws with no cropping first. WritedrawImage(orsheet, x, y, width, height, sourceX, sourceY, sourceWidth, sourceHeight) drawImage(. Imagessheet, in: box, source: cell) - A long exposure in single precision.
noClear(keeps the canvas in single precision, so a pile of very faint marks keeps adding where a half-float canvas levels off. Accumulationprecision: .float32) - Trails as the base of a combine.
Feedback,Accumulator, andSimFieldtakecombined(with:_:)besidefiltered(_:), 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, andapertureBlades. A highlight opens into an even disc the shape of the iris.focusRange,maxBlur, andqualitytune it, andnoDepthOfField()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-tracedexport skips it, since the traced frame has already come through the lens. Path-traced export - Lines in 3D.
drawLineanddrawPolylinetakeVector3points 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 each point. Lines in 3D_: colors: closed: ) - Line weight in scene units, axes, and a grid.
strokeWeight(sets a weight in the scene's units, which thins a line as it recedes.0.05, in: .world) drawAxes(length:)anddrawGrid(are built from the same lines. The example issize: divisions: ) Examples/.3D/ Geometry/ FieldLines - A path through space.
Curve3Dis a path, open or closed, kept as points or threaded smoothly through a few withCurve3D(.curveThrough: closed: segments: ) point(at:)andframe(at:)walk it by length. Its frames never twist about the path, sorotate(faces a rider along it. Sweeps and stripsframe .rotation) - Sweeps and strips.
Meshcarries a.sweep( _: along: scale: twist: capped: ) Shapealong aCurve3D, sized and turned along the way.Meshis the ribbon between two lines..strip( between: and: colors: closed: ) drawSweepanddrawStripare the bare calls. Sweeps and strips - An even pace along a curve.
Pacewalks a curve written as a function at one speed, withPace(.byLengthOf: period: ) Pace(walks the strip between two such curves at one rate of area. Both keep counting periods, so a loop never jumps. Sweeps and stripsbyAreaBetween: and: period: ) - Instanced copies that move.
drawMesh(inside_: instances: ) withMotionfollows 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 aMeshFieldkeep the camera's motion only. Instancing
Geometry
- The regions a drawing encloses.
regions(cuts a set of outlines where they cross and returns every patch the lines wall off as its ownenclosedBy: ) Shape.Circleand.contour( segments: ) Rectangle.contourturn those values into outlines. The example isExamples/. GeometryShapes/ ColoringBook - Points in the order of a Hilbert curve.
hilbertOrder(of:)andhilbertSorted(_:)sort points along a space-filling curve, so one line through a stipple stays local.hilbertIndex(is one point's place on the curve. The example isof: in: level: ) Examples/. Hilbert orderImages/ HilbertLine
Path-traced export
- A traced frame on a time budget.
--path-traced --pt-seconds 10gives each frame ten seconds in place of a sample count. The recipe records the count reached, so the frame reproduces from it.--pt-minis a floor the clock may not cut under. In code,PathTracing. Path-traced export.secondsPerFrame - A traced sequence carries its earlier frames.
--path-traced 32 --pt-reuse 8carries 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. Path-traced export.reusedFrames - A bound on bounced light.
--path-traced 256 --pt-clamp 4holds 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. Path-traced export.maxBounceLight - A traced pixel stops once it has settled.
--path-traced 512 --pt-noise 0.01lets each pixel end early once its grain falls under the figure. The count becomes the most a pixel may trace, and--pt-min Nraises the least. In code,PathTracingand.noiseThreshold 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/hasRecreations/ KazuyaSakai 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/follows her modular sculptures.Recreations/ SalouaRaoudaChoucair Poemcuts a block into verses that lift apart and set back, after Poem, Infinite Structure, and Poem of Nine Verses.Dualscuts a block into two parts that slide apart and lock, as in the Repetitive Dual.Poemexports with--export-usdzandDualswith--export-svg.
Changed
Each of these can change what a sketch draws or exports.
.defocusblurs as the canvas lens does. It now runs the same passes asdepthOfField(), withfocus,range,irisAngle, andcatsEyeas before. A near highlight opens into an even disc. The blur now grows with distance all the way to the depth map's ends, reachingmaxBlurthere. Every defocused layer looks different. 3D- An export holds a sketch that stopped its loop. After
noLoop(), an export used to calldraw()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:), andpiece(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: .float32used 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 onCurve3D'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 carriesollin, the framework's own. Each ends in-dirtywhen 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
focusDistancesays. 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
withMotionmover 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
catsEyeabove zero, a.defocusdisc 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. AcatsEyeof 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
TrajectoryTrackerexport can still find a different arc. Vision - A playing video feeds its trackers in an export. A playing
VideoPlayerhands each new frame to its trackers during an export, where they read nothing before.--settleno 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. AnoLoop()sketch can change what it shows on a click or a key and cost nothing between them. Sketch - Knowing an export.
isExportingis 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()andshowPointer()take it away and bring it back, over the canvas only. Input - The open panel and the clipboard.
chooseFiles(shows the open panel without stopping the frames. The pick arrives aswithExtensions: allowsMultiple: ) Stringpaths throughchosenFiles()and thefilesChosen()hook.copyFrame()puts the frame the window shows on the clipboard as a PNG. Input, Recording
Drawing
- A radius per corner.
drawRect(rounds each corner of a rectangle by its own radius, on every anchor_: cornerRadii: ) cornerRadius:takes and ondrawRects. WriteCornerRadii.top(20)for a tab,.bottom,.left, or.rightfor the other pairs, or name all four. Drawing - Four radii in a field and on paper.
SDFand.rect( width: height: cornerRadii: ) SDFcarry 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.square( _: cornerRadii: ) - A gradient that sweeps around a point.
Gradientlays 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.conic( center: startAngle: )
Effects
- Three more filters.
.channelMixer(_:)runs aColorMatrixover a layer:.gray,.gray(,red: green: blue: ) .swapping(, or a matrix built row by row..red, .blue) .lensDistortion(bends a layer into a barrel or a pincushion.amount: quartic: center: fillsFrame: ) .cornerPin(lays a layer onto four points. All three cross to the web page. EffectstopLeft: topRight: bottomRight: bottomLeft: ) - A generator's plane as a value.
ComplexPlaneis the framing every picture of the complex plane shares:centerin the middle,spanunits across the shorter side, the imaginary axis up.ComplexPlane(takes a generator'scenter: zoom: ) zoom. Effects - A number marked on a generator's picture. A generator's
planehands its own framing back.planemarks a number on the picture, and.canvasPoint( of: c, in: bounds) planereads the number under the pointer. Effects.planePoint( at: mouse, in: bounds)
3D
- Spherical coordinates.
spherical(isazimuth, elevation, radius, around: ) polarin 3D, the angles first, in the camera's own orbit convention. AVector3'sazimuthandelevationread the angles back. Math - One mesh from several.
Mesh.joined(_:)lays parts end to end as one mesh with no boolean, andplaced(_:)bakes aMeshInstanceplacement into a part first. The result renders as its parts would underdrawMesh, in one draw call.union(_:)stays the answer for a watertight print. 3D - Motion for a mesh that changes shape.
drawMesh(takes last frame's vertex positions, so a ribbon rebuilt every frame or a cloth is followed vertex by vertex._: previous: ) 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, set on a copy by.emissiveIntensity Mesh.glowing(_:), adds the surface's own color as light, so a vertex-colored mesh glows in each vertex's hue. It adds toemissiveColor, works with no lights, and traces in a path-traced export. 3D - The environments on a menu.
Environmentconforms toParamChoices, so@Param var surroundings = Environmentgives the inspector a menu of the twenty built-in environments. A.studio .sky(...)or a built-in withlightingOnly()applied is off the menu, so apply the modifier where the sketch uses it. 3D
Geometry and simulation
- Points inside a shape.
randomPoints(scatters points evenly over ain: count: ) Shape's fill, holes left out.randomPoints(scatters them along the outline, andalong: count: ) poissonDisk(is the blue-noise form kept inside the shape. All three run on the sketch's seededin: radius: ) random. Geometry, Blue noise - The metaball curve on its own.
Metaballsis the bump one ball is made of: 1 at the center, a half at the radius, 0 from twice the radius out..falloff( distanceSquared: radius: ) Metaballsis one ball's own contribution, so a sketch can shape its own blobs. Isosurfaces.Ball .value( at: )
Connections
- The pitch wheel as a parameter.
MIDIInputdrives a.bindPitchBend( to: channel: travel: ) @Paramfrom the wheel, the middle of its range at rest.travel: 0...1spends the whole range on an upward bend.pitchBend(channel:)reads the wheel from -1 to 1, andunbindPitchBend(lets go. A per-note controller's bends stay inchannel: ) heldNotes. MIDI
Parameters and the live window
- Putting a parameter back. A parameter tuned in the inspector goes back to the value its
@Paramline declares, with no reload and nosetup(). 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()andSketchput values back, and.resetParameters( named: ) declaredValuereads what the line gave the parameter. The remote surface has a Reset all of its own (RemoteReseton the wire). A host passes aParamResetActionas the newreset:argument ofParametersListView(. Parametersparameters: sketchName: onChange: save: reset: )
Examples
- Alma Thomas joins the recreations.
Examples/follows the paintings of 1966 to 1972, built from separate strokes of a flat brush.Recreations/ AlmaThomas Ringsis after Resurrection and The Eclipse.Columnsis after Snoopy Sees Earth Wrapped in Sunset, Earth Sermon, Mars Dust, and Starry Night and the Astronauts. Both usestrokeBrush, and--export-svggives 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 fourcontactSheet(of:)forms,plates(of:), andseparations(of:)now throw anExportError, where they answeredniland printed a line. Their values are no longer optional.if let frame = OllinAppbecomes.image( of: sketch) let frame = try OllinApp, or.image( of: sketch) try?for the old answer. Export - What the thrown error says.
OllinApp.image(of:)throws kindunrendered, with the renderer's own message and an emptypath, 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 throwsunsupported.exportWidgetthrows when no picture draws. Export - One-coordinate noise is a field of its own.
noise(x),signedNoise(x),fbm(x),ridgedFbm(x), andturbulence(x)ran dead flat across some cells. They now read a one-dimensional field, asnoiseField()and a formula'snoisedo 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(now follows the conventiondisplayP3: green: blue: ) NSColorSpaceuses. A sketch that reads such a color's components back sees new numbers..extendedSRGB displayP3Components,Color(linear:), andlinearRGBstill 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 isMySketch(it wasMyPiece). A widget project's one public line isDoor.swift, declaring<Name>Door(it wasPiece.swiftand<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 filterwrote aFilterbeside the built-in.vignette( amount: ) vignette(, so the starter's ownamount: radius: softness: ) .vignette()call was ambiguous. It now writescornerShade(, called asamount: ) .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, and.md 42-MakingItPhysical, and.md 33-DepthAndThePhoneis now.md 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.mdgains 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
isolinesstop the program. The line now ends at the hole's edge. Isolines - A stack of contour levels is fast.
isolines(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. Isolinesat: levels, ...) - A kite-and-dart tiling covers its patch.
Penrosecame 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.tiles( .kitesAndDarts, in: tileEdge: ) - 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..diffusenow fills each side's region, andsharpnessbuys 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
Batchkeeps 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 withcoff 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
.clearand ignores a write. A layer'simage, 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.shaderkernel, and every user shader, paid a large fixed cost on each draw, which--benchshowed 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,
SpatialHashleft a strip along the right and the bottom empty. So did Particle Life, the Primordial Particle System, Particle Lenia, swarm chemistry,Swarm,ParticleFluid, andSoftBodies. 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.forestFirefield 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:massandphysics:give them, came back fromcenterOfMass restore(_:)at the mass its shape makes. The snapshot now writes both, in format 6, and still reads formats 4 and 5. Physics3D surfacePointswith blue noise is about three times faster. The default.blueNoisescatter returns the same points as before.
Connections
TUIOReceiverreads a real tracker's frame as one frame. Every frame from a tracker was taken twice:framesReceivedcounted 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. --cuefinds a look saved beside a live sketch. An OllinLive export given--cue <name>and no--cuesreported a look saved from the inspector as missing. The export now loadsSketch.cues.jsonfrom beside the sketch, and a--cuesfile still wins. Cuesollin examplesdescribes 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
MIDIFilesexample 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
.jhfdata's terms ask two acknowledgments to travel with it, and the notices called it public domain. Both now appear as worded, inTHIRD-PARTY-NOTICESand in the notice beside the font. Notices.md
[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.tubepicks one type's, andollin api Paramlists a type's members. The reference offlineollin apiprints a declaration as its source writes it. A parameter's name carries its unit, as inrotate(._ radians: Double) ollin api Sketchprints@MainActor open class Sketch, where theAPI/listing saysopen class Sketch. Anonisolatedmember keeps the word.ollin apifinds 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, sostrokeWidthpoints atstrokeWeight.- A quick reference.
Docs/is the framework in one read. It has the calls by area, the units and conventions,QuickReference .md @Param, the command line, and the mistakes that draw a wrong picture with no error. llms.txtat 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.shwrites it from the pages. The reference offline- Every example is checked to draw the same picture twice.
Scripts/exports each example that runs on its own, twice under onecheck-determinism .sh --seedin two processes, and compares the pixels.Scripts/runs it. Why a run repeats lists what reaches past a seed, such as the order apreflight .sh --milestone Setwalks. - A second visit to Monir Shahroudy Farmanfarmaian.
Examples/gainsRecreations/ MonirFarmanfarmaian Geometric, after the felt-tip Geometric drawings on a grid of triangles (2013 and 2014), andConvertible, 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/gainsRecreations/ VicenteRojo 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/gainsRecreations/ VladimirBonacic GFE164, his Dynamic Object GF.E (16,4) (1969 to 1971), built from the appendix of his 1974 article.Random63is Random 63 (1969) beside a panel of the same bulbs driven by a field. WithsendsToWallon, both panels go out over sACN through anLEDMap. - A second visit to Osamu Sato.
Examples/gains two sketches from The Art of Computer Designing (1993).Recreations/ OsamuSato StraightLinesdraws an eye inside a hatched word with nothing but straight lines, andwordsets the word.TotemBuilderdeals a monster made of circles for each seed, and--export-gridproofs a pile of them. - Waldemar Cordeiro joins the recreations.
Examples/is the first recreation that reads a photograph.Recreations/ WaldemarCordeiro 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
ExportErrorwhen it cannot finish. A refused frame, a missing folder, or an unknown file extension used to end the program with afatalError. Each export call onOllinAppnow throws, naming the file, the frame it reached, and what went wrong.OllinAppbecomes.exportVideo( sketch, …) try OllinApp. Export.exportVideo( sketch, …) - An
ExportErrorsays which of three things happened. Itskindisunsupported(the request could not be met),unrendered(a frame did not draw), orunwritable(the file would not take it). Asking for zero frames is nowunsupported. 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 fourexportContactSheetforms.exportHEICthrows where it answerednil, and itsStillExportis no longer optional.exportWidgetthrows where it printed. - Every loader throws a
FileErrorwhen a file will not load. A missing file and a file in the wrong format both came back asnil. Nowmissingis a path that is not there andunreadableis bytes that are not the format.loadImage(becomes"photo .jpg")! try! loadImage(. Sketch"photo .jpg") - The sketch loaders that now throw.
loadImage,loadMesh,loadScene,loadSVG,loadPalette,loadTable, andloadJSONarethrows -> Twhere they were-> T?.Palette.palettesandloadPalettesthrow where they returned[].if let photo = loadImage(becomespath) if let photo = try? loadImage(. A name lookup such aspath) OutlineFont(name:)still answersnil. - The initializers that now throw. Each
init?is nowinit … throws. That covers the file, data, text, and resource initializers ofImage,Mesh(withobjSource:),Scene,SVG,Palette,Table, andJSON. It also coversIESProfile(withstring:),ICCProfile,OutlineFont,BitmapFont(thebdf,fnt, andresource:forms), andStrokeFont(thejhfandresource:forms). - Compute kernels, phone references, and writers throw too.
ComputeKernel(andentry: resource: withExtension: in: ) ComputeKernel(throw, as doentry: contentsOf: ) PhoneReference,.picture( path: …) picture(resource:…),object(path:…), andobject(resource:…).Mesh.write(to:),Scene.write(to:),saveMesh, andsaveScenethrow anunwritableerror where they returnedfalse.IESProfileno 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), and 32 is 41..md
Fixed
Drawing and effects
- A frame with millions of marks in one pass draws them. A
LineSpraypast 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), everydrawTextcost a draw call of its own, live and in a replayedBatch. 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.gaussianBluris a pixel count, soradius: 0.012spreads nothing. A sketch that writes one is told once, frompostProcessorfiltered.DynamicObject,NamaFrieze,LensFlare, andSceneExplorernow 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 aSpatialHash. 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
MeshFieldexports 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
.cubelook declaring a 256-node cube no longer sets aside 265 MB. An ASE palette swatch whose numbers are not numbers is skipped, andColor(hue:)reads such a hue as red. An SVG arc or transform past what aDoubleholds 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'sintreadsnilfor a number noIntholds, andnoise()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.boundsreads 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
.couldNotDecodefromAudioPlayer. Audio - An SFZ map written in Latin-1 loads.
SampledInstrument(threwcontentsOf: ) .couldNotDecodefor a map that is not UTF-8, which is how older libraries spell an accented sample name. Synthesis
Export and output
--photokeeps every camera closed. A sketch that started aCameraitself opened this machine's camera even under the flag, which reached onlyCamera.orStill.Camera.start()now throws under--photo.LiveSurface,LiveEnvironment,DepthCloud, andBarcodeReadertake a bundled picture there. Vision--skipbuilds a picture that carries from frame to frame. The warmup randraw()but rendered only anoClearcanvas. AFeedbackpile, anAccumulator, aLineSpray'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-gridand--export-sweep, a sketch with aFeedbacklayer drew its first two tiles and left the rest black. Variations --paramwins over--cue. A value given by hand beside a cue was overwritten by the cue's. The cue now lands first, and beforesetup(), so whatsetup()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, not2.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, andollin apianswer in a tenth of a second. Each lookup went throughswift 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, andShapes/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(lays a crowd on acolumns: rows: layout: wraps: ) .square(,.vonNeumann) .square(.moore), or.hexlattice, coupled withinrangerings, withwrapsfor a torus. The hex lattice sharesHexGrid's addressing.Kuramoto(and the settableneighbors: ) neighborscouple a crowd over any graph. Oscillators - A map of where a crowd has locked.
localCoherenceis the order parameter over each oscillator's own neighborhood. A crowd can hold severallayersper site, pulled together bylayerCoupling, andratesis every oscillator's rate at the last substep. TheSimulation/Kuramotoexample gains a honeycomb field. Oscillators - A second lens, and wear on the iris.
Lens.doubleGaussis a 1950s six-element double Gauss whose twenty ghosts make the chain a flare is known for.LensFlare.wearis 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(withstreakLength,streakAngle,streakTint) is the long line an anamorphic lens throws.LensFlare.dirtis grime on the front element, andLensFlare.halo(withhaloSize) is a rainbow ring around a light. All three are off until asked for. Lens flare - An anamorphic front group.
Lensstretches the ghosts, the star, and the halo sideways by the squeeze. The streak stays a line and the dirt keeps its shape. Lens flare.anamorphic( squeeze: )
Examples
- Mohamed Melehi joins the recreations.
Examples/is after his hard-edge wave paintings of the 1970s.Recreations/ MohamedMelehi Wavesis a ribbon of flat bands that breaks into a traveling wave, andFlammestands the wave up as one flame. Both export every band as a closed outline. - Nasreen Mohamedi joins the recreations.
Examples/is after her untitled ink and graphite drawings.Recreations/ NasreenMohamedi Registersrules runs of fine lines that gather against one heavy line and open toward the next.Diagonalsfloats chevrons that thin to their tips among hairlines. Both export for a pen. - A second visit to Gego.
Examples/gains two sketches.Recreations/ Gego 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/gains two sketches.Recreations/ HassanSharif 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/gains two sketches.Recreations/ ManuelFelguerez EspacioMultiple, after El espacio múltiple (1973), carries one form through a flat painting, a relief, and a standing piece, and--export-svggives its plan.RelieveLacadoraises aMaquinaEsteticadesign 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). It costs one to five milliseconds a frame at 1080 square on an M2. Lens flare.abbeNumber - A bare
lensFlare()uses another lens. With no lens named it usesLens.standard, the double Gauss multicoated at f/8, where it used the Heliar wide open. Name.heliarto keep it.LensFlarenow sets how soft every ghost is, and defaults to.sourceSize 0.015(was0.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(, and_: withExtension: in: ) init(contentsOf:),GrainSource(andnamed: withExtension: in: ) (contentsOf:), andSampledInstrument(andsfz: in: ) (contentsOf:)throwAudioErrorwhere they returnednil. Its cases areresourceNotFound,couldNotDecode, and the newempty. Synthesis - An audio engine that will not start says why.
Synth,Tone, andAudioPlayergainunavailableReason, cleared by the next start that succeeds, whereSynth.start()printed andTone.play()andAudioPlayer.play()said nothing.AudioInput.start()still throws for what it can see, and writesunavailableReasonfor a refused microphone. Audio
Vision and capture
- A video that cannot open says so.
VideoPlayer(url:)throwsVideoErrorfor a missing file, as the.fileNotFound path:andresource:forms already did. A file that opens but is not a movie says so in the newVideoPlayer. Video.unavailableReason Record3DRecordingthrows outside the recording. It throws.pose( at: ) frameOutOfRange, asframe(at:)does, and isnilonly for a frame with no recorded pose. Record3D- Vision has one error type. The five
Errorenums nested inModelTracker,PointSegmenter,ConceptTracker,DepthTracker, andDepthClipare oneVisionError, withunavailableand the newfailed. Acatchnaming an old type namesVisionErrornow. Vision - Two detectors return a value or throw.
PersonSegmenterand.detect( in: quality: ) SaliencyTrackerno longer return an Optional. They throw.detect( in: mode: ) VisionError.failedwhen a matte or heat map cannot be converted.SubjectSegmenteris.detect( in: ) nilonly when no subject is found, and a depth model that answers no map says so inunavailableReason. Vision
Physics
- Physics snapshots throw.
PhysicsSnapshot(anddata: ) (throwresource: withExtension: in: ) PhysicsSnapshot(.Failure unreadable, or the newresourceNotFound) where they returnednil.World3D.restore(_:)throwsunreadablewhere it printed, andWorld3Dthrows where it returned.load( contentsOf: ) false. 3D physics - A 3D body that cannot be built throws.
World3D.addVehicle,addRagdoll(from:),addSoftBody(from:),addRope(through:), andaddTensegrity(_:)throw the newPhysicsErrorwhere they returned.unbuildable niland printed. Its text says what was needed. 3D physics
Connections
- A serial port says what it is waiting on.
SerialPortandFirmataBoardgainlastError, the sentenceopen()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 behindisOpen. Serial - A Syphon client and a Link clock say why they are unavailable.
SyphonClientgainsunavailableReasonfor a source that was not there, a refused connection, or a source that has gone away.LinkClockgainsinterfaceCountandunavailableReasonfor a clock that could open no network interface. Syphon, Link - An OSCQuery server and the remote inspector start again.
OSCQueryServerandRemoteInspectorgainisRunning,unavailableReason, and astart()that serves again afterstop()or tries a held port again.RemoteInspectorno longer leaves.stop( ) boundPortset. OSCQuery, Remote - A number that does not fit reads as
nil.OSCArgument.int,MQTTMessage.intandint(named:),RoomMessage.int, and a table'sint(_:)now returnnilfor a number that is not finite or too large for anInt. They used to trap. A parameter restored from a stored.numberthat large keeps its value. OSC, MQTT, Room VirtualCameraErroris internal. No public call ever produced it.VirtualCameraServeralready carried its sentences..unavailableReason
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
--fpsnames.--export,--export-exr,--export-plates, and the vector exports read--frameand never--fps. So--frame 30 --fps 10drew at half a second where it meant three seconds. Every one-frame export now reads both flags. Export - A
--paramvalue is there whensetup()runs. It landed only aftersetup(), so a count built there read the declared default. It is now applied beforesetup()and again after it. AcanvasSizethat picks its size by a parameter exports and opens at the run's size. Parameters - An extension's
afterFramefires in an export. The headless runs never called it, soFrameInfo.profilecould 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, throughint. Each is now refused, ignored, or read asnil. The test suite - A line spray whose scene changes size no longer stalls. Under
.byLengthsampling, 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.
MaquinaEsteticaplaced 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
noClearcanvas 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 tomakeFeedback(. Accumulationprecision: .float32)
[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
Contoursays 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:)andcrossings()find where aContourmeets another outline or itself.simplified(thins a dense trace,tolerance: ) rounded(_:)andchamfered(_:)work its corners (onShapetoo), andreversed()walks it backward.Examples/weaves a tangled loop through its own crossings. GeometryShapes/ OverUnder - Outlines, shapes, and grids read as collections. A
Contouris its points, aShapeits contours, aGrid,HexGrid, orTriangleGridits cells, and aPolyominoits squares. Each takesfor point in contour,grid.count,piece,.contains( cell) shape.first,map,filter, andrandomElement(.using: ) points,contours, andcellsstill return arrays. Geometry Contourgains a geometriccontains(_ point:). It answers the questionShape.contains(_:)answers. For vertex membership, askcontour. Geometry.points .contains( p) - The depth-of-field aperture has a shape.
Bokeh.aperturedecides what a point far from focus turns into. It is.roundas before,.blades(6)for the hexagon a real iris draws,.blades(to turn it, orcount: rotation: ) .picture(_:)for a mask from anyImage. Depth of field - Surfaces in the depth-of-field spray.
SprayQuadputs a face in aLineSprayscene beside its wires, set throughsetQuads(_:). A quad'slightis the whole quad's.LineSpray.pictureis an image the quads read through each quad'spictureBounds, 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(from a preset..noir) { } withoutLights { }draws a body flat in its fill color.addLight(_:)adds oneLightto the frame's own rig. Lamps set the ordinary way behave as before. 3D
Sound and MIDI
- MIDI files in and out.
MIDIFileinOllinAudioreads 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 throughbeats(at:)andseconds(at:). ASynthwrites down what it plays betweenstartRecording(andtempo: name: ) stopRecording(). MIDI files - Timecode compares.
TimecodeisComparable, so a cue test is<and a cue window is a range:if (. The order runs on the moment a timecode names, so two counted at different rates still compare. MIDIcueIn..<cueOut) .contains( now)
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/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.Shaders/ BlackHole - A homage after Gego.
Examples/has two sketches.Recreations/ Gego Reticulareahangs a net of irregular triangles from the ceiling and lets gravity fold it, drawn as 2D lines throughproject.DrawingWithoutPaperhangs 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/rebuilds two lamp objects he made in Zagreb between 1969 and 1971, driven by the arithmetic of Galois fields.Recreations/ VladimirBonacic DynamicObjectis the 32 by 32 square of GF.E 32-S, andNamaFriezeis the eighteen-panel frieze DIN. PR 18. SetsendsToWalland 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.hearingRangeis nowhearingDistance,Wavetable.lengthissamplesPerCycle, andCompressor.makeupismakeupGain.Equalizer.lowEdge/highEdgearelowFrequency/highFrequencybesidemidFrequency, andGrainCloud.scatteristimingJitterbesidepositionJitterandpitchSpread.Patchtakes.modulated( by: index: ) amount:. - Renamed in listening.
AudioAnalyzeris now.process( _: ) analyze(_:),SpeechListeneris.captionWords maxCaptionWords, andSonification.levelsislevelRange.DetectedPitch.noteisnearestPitch, the rounded twin ofpitch, sinceNoteis another type.AudioAnalyzer.noteandAudioSource.notefollow it. - Renamed in vision. The
[Classification]lists calledlabelsonImageClassifier,ConceptTracker,ModelTracker, andModelOutputare nowclassifications.ConceptTrackeris.confidence( of: ) share(of:),PointSegmenteris.Pick .score confidence, and the segmenter'sisWorkingisisPicking.TrajectoryTracker(takestrajectoryLength: ) minObservationCount:, andContourDetectoris.contrastAdjustment contrastFactor. - Renamed in physics.
Worldis now.pixelsPerMeter unitsPerMeter, matchingWorld3D.Rope3D'sthicknessisradius, soWorld3D.addRopetakesradius:.Wheel3D.spinisrollAnglebesidesteerAngle, withspinRatethe rate.Character3Dis.move( _: ) walk(at:), anddragSoftGrab/releaseSoftGrabaredragSoftGrip/releaseSoftGrip, after theSoftGripthey take. - Renamed in screen capture, Bluetooth, haptics, and controllers.
ScreenSourceis now.window( title: ) window(matching:), andBluetoothDevice(isnamed: ) BluetoothDevice(.matching: ) BluetoothReadingis.isOn bool,BluetoothCharacteristicis.standard( for: ) known(for:),HapticEventis.strength( at: ) intensity(at:), andcontrollerMotion(is_: ) controllersReportMotion(._: ) - Renamed in Firmata, MQTT, laser, and timecode.
FirmataBoardis now.setSamplingInterval( _ milliseconds: Int) sampleEvery(._ seconds: Double) MQTTTopicis.isValid( _: ) isValidFilter(_:),LaserSafetyis.stationaryLimit maxStationaryPoints, andLaserProjectoris.isConnected isPlaying.Timecodeis.advanced( by: ) advanced(byFrames:), sinceadvance(by:)means seconds everywhere else. - Renamed in the room and the phone.
Room.nameis nowpeerName, since it named this machine, andRoom.problemislastError.PhoneState.statusisstatusMessage, andPhoneBodyis.isJointTracked( _: ) 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
nilmeans a value is absent.MQTTClientnow clears when the line comes back up, and.lastError EtherDreamFinderthrows.start( ) StartError.badPortwhere it returned in silence. - A camera says why it has no frame.
CameragainsunavailableReasonfor a refused permission prompt or a failure after it, whereframestayednilwith no reason.start()still throws for what it can see itself.Record3DRecording(reports a missing file asurl: ) Record3DError, as its.fileNotFound pathtwin 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/listed a layer's blend and resolution modifiers asDrawing/ Effects .md .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(takes linear numbers, the ones a lighting calculation ends with.linear: green: blue: ) linearRGBreads a color back as light inDouble. The curves between them,Color.srgbToLinearandColor.linearToSrgb, are public now. Color - A
SprayLinetakes its light as light.SprayLine(carries linear RGB radiance per pass. A scene that shades in linear units hands its numbers over unchanged. Depth of field from lightfrom: to: light: endLight: ) - Complex numbers.
Complexis a point of the plane that multiplies. WriteComplex(1, 2),1 + 2 * .i, the polarComplex(, ormagnitude: argument: ) .unit(angle)to turn by an angle. It hasmagnitude,argument,conjugate, andreciprocal.Vector2(z)andComplex(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.Complexis aNumericvalue, solet c: Complex = 3works,2 * zdoubles, and an array sums underreduce(0, +). Complex - Complex arithmetic in a shader. The shader library gains a
complexmodule with the same arithmetic on afloat2:cmul,cdiv,cexp,clog,cpow,csqrt,csin,ccos, and the rest.complexPlanereads a layer as the plane.domainColorpaints a value as the domain-coloring generator does. Shader library - Curl noise in space.
curlNoise(x, y, z)andcurlNoise(give a flow that swirls in every direction and never gathers or drains. A curl now costs about three reads of_ p: Vector3) noise, and the shader library has the matchingfloat3 curlNoise(. Thefloat3) Rendering/LineSprayexample bends its rings with it. Noise - The noise fields as a value.
noiseFieldsis the sketch's family of fields as oneNoiseFieldsvalue, seeded as the sketch is, with everynoise,fbm,curlNoise,simplexNoise, andworleyform. It can be handed to every core, as underDispatchQueue..concurrentPerform noiseSeedstill reaches it, andNoiseFields(seed:)makes one anywhere. Noise
Simulation
- A simulation of your own.
Simruns a Metal kernel you write over a.shader( _: inject: substeps: rest: ) SimFieldin place of a built-in rule.shade(uv, info)returns a cell's next state fromcell(info),cell(info, dx, dy),sampleRaw(info, p), and the field's extrainputs, read asinput(info, i). TheSimulation/Windexample uses it. Effects - A drawn mark enters the field by your rule. An optional
inject:kernel readsmark(info)and decides how a drawn mark enters the field. A circle or a line drawn inwithFieldis then that shape, stepped by your rule. Effects - A field with walls, and a field that counts. Every field has an
edge, aFieldEdge:.wrapping(the torus it always was),.clampedwalls, or one axis of each. The twelve neighbor-reading sims honor it too. A field also has aprecision, with.float32for a state that counts. Effects - A field read back, and drawn as arrows.
SimField.snapshot()reads the field back as aFieldSnapshot.Filterdraws any two-channel layer as arrows. Effects.arrows( spacing: scale: color: width: )
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, andpressure. Every finger still arrives ondevice.touches.PhoneScreenreportsisShowingand lets go of the pointer withdrivesPointer.Examples/paints with a finger.3D/ Phone/ PhoneCanvas - A GIF is written as it is drawn.
--export-gifand--export-loopput 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: .perFrameonexportGIF) chooses one for every frame. Export - A GIF writer a sketch can drive.
GIFWritertakes images of your own from a sketch or an extension. CallGIFWriter(,path: width: height: ) append(_:delay:), andfinish(), withpalette:andloops:beside them. Export
Tools and the reference
- The API diff reads as a version.
Scripts/api-diff.shcompares the public listings underAPI/with the last tag. It names every line added, removed, renamed, changed, or deprecated, and the bump the next release needs.--changelogprints 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
Meshgenerators (.klein,.lathe,.mobius,.superellipsoid),Material'srimColor,rimSharpness, andsubsurfaceColor,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/hasRecreations/ MonirFarmanfarmaian 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/reads two leaves of a 2022 notebook spread, where a digit is painted as a color.Recreations/ OwenSchuh CountingTheRationalsweaves the table of fractions and walks its diagonals, so one walk reaches every cell.DiagonalArgumentbuilds the number that is on no line of a list. - Hassan Sharif joins the recreations.
Examples/reads two of his semi-systems.Recreations/ HassanSharif DotsLinesFormsmakes the 1984 sheet again from new numbers, as dots, as lines, and as squares.AngularLinesfills 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/colors the ratio of two moving points in a shader and lays that ratio's circles over it fromShaders/ ComplexPlane draw().ImaginaryLogpaints the imaginary part of the ratio's logarithm.Meromorphicbuilds a ratio of two cubics from six moving roots.
Changed
SprayLinestores light. Itscolor,endColor,intensity, andendIntensityproperties are gone.lightandendLighthold the linear RGB radiance they used to be multiplied into. Thecolor:intensity:initializer is unchanged, so a line written that way builds as before and draws the same pixels.LineSpray.setLineskeeps 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. TheRectangleDetectorinitializer's size argument isminSize:. The page had it asminimumSize:.
[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.
.photo1080is 1080 by 1440, and.photo1080is the 4:3 form at 1440 by 1080. It sits beside.landscape .portrait1080, the slightly taller 4:5 crop, and the project generator offers it too. Canvas - Your seed reaches the standard library's dice.
randomnessis the sketch's own generator, the streamrandom()draws from. Hand it to any call that takesusing:and that call follows your seed:colors,.randomElement( using: &randomness) points,.shuffled( using: &randomness) Int. Seed it with.random( in: 1 ... 6, using: &randomness) randomSeedorseedas before. Random - The seedable generators follow the sketch.
WaveFunctionCollapse,.solve LSystem.expanded,ShapeGrammar.run, andWangTiles.filltakerandomness, so they follow the sketch'svariationand 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), andpaletteall work, with no.randomElement( using: &randomness) .colorsin the way. The wrappingpalette[i]is unchanged and read-only, so a change still goes throughcolors. Color Vector2andVector3share oneVectorprotocol.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 againstVectortakes either kind of point,centroidaverages either, and a type of your own can conform. No call or number changed. Geometry- Each vector type keeps what does not carry over.
crossis aDoublein the plane and aVector3in space.Vector2keepsangle,perpendicular, the signedangle(to:), androtated(by:).Vector3keepsunitZandxy. Geometry
3D and the phone
- A light with a reach.
pointLight(bounds how far a light carries: full strength at the source and nothing at..., reach: 11) reachand beyond.pointLight,spotLight,rectangleLight,diskLight,tubeLight, and the matchingLightfactories take it, andLight.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/. 3D3D/ Lighting/ ManyLights - The sketch tells the phone what to look for.
deviceasks the phone for a mode, and.use( .markers) 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, anddevice.latestStatesays where it landed and what the phone could not use. SeeExamples/. Phone3D/ Phone/ PhoneMarkers
Simulation and sound
- A crowd that makes room.
Crowdwalks a crowd through itself with nobody overlapping while there is room to move.crowd.add(at:goal:)places a walker, andaddObstacleandaddWallbuild rooms and corridors.preferredVelocityreplaces goals with a rule of your own, andisJammedmarks walkers with no safe move.drawCrowddraws them.Examples/has four scenes. CrowdsSimulation/ Crowd - A sound played as a cloud of grains.
synthand.grainSource = GrainSource( contentsOf: url) Voice(play a sound as short grains. The grains keep the note's pitch while the place they are cut from moves atgranular: GrainCloud( size: 0.08, density: 40, speed: 0)) speedalone.speed: 0holds one moment, andsynth.grainScrubdrags it through the sound. Synthesis - The shape of a grain cloud.
size,density,positionJitter,pitchSpread,panSpread, andscatterset the cloud.GrainShapeis the cut each grain is made with, and.cloud,.smear, and.rainare three places to start.GrainShapeand.level( at: ) Synth.grainCountdraw it. SeeExamples/. SynthesisAudio/ Grains
Export and output
- A sketch as a widget on the desktop.
ollin new <name> --kind widgetwrites an app with a WidgetKit extension inside it, and./installs it. A widget is redrawn a few times an hour. The sketch spaces its pictures withbuild .sh --install override var widgetTimeline:. WidgetWidgetTimeline { .every( minutes: 15, count: 4) } - The clock in a widget, and
dateon every sketch. In a widgettimeis seconds since midnight of the moment drawn,deltaTimeis the spacing, andframeCountis 1.dateis new on every sketch: the moment a frame stands for. A day schedule'sscheduledPeriodnow 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.
@Savedis how a sketch says which properties should travel. Change a declaration,setup(), or anythingsetup()calls, and the swap starts the run over, as ⌘⇧↩ does. The toast names which happened. For a framework caller the new argument isSketchRunner. Live coding.reload( to: keepClock: keepRun: )
The Guide and examples
- The Guide teaches every tool it lists. OSCQuery and
ollin doctorwere 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/carries out two written instructions of the kind his Process works are made of. InRecreations/ CaseyReas Touching, circles that are never drawn leave a line between their centers while they touch. InPlanes, 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, andupdateEvolutionare nowstepSwarm,stepParticles, and the rest with the same suffix.Boids,ForceLayout,Meander, andDifferentialGrowthalready spelled itstep.BeatFolloweris.update( at: ) advance(to:), which leaves noupdatein the public API. - A smoothed value jumps.
$x.set(v)is now$x.jump(to: v)on@Eased,@Smoothed,@Sprung, and@Param, and on theDampedSpringandOneEuroFiltervalues 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(is nowinnerRadius: outerRadius: ) randomVector(, besideinnerRadius: outerRadius: ) randomVector(in:). The old spelling was the oneSDFuses for the shape..ring( innerRadius: outerRadius: ) - An index of refraction is
ior:everywhere.refractedRays(andthrough: from: index: closed: ) caustic(now takethrough: from: index: closed: ) ior:, the labelMaterial,MeshMaterial,LensInterface, andFilter.thinFilmalready use. - A Boolean label is a participle.
.mask(,channel: inverted: ) .masked(,by: channel: inverted: ) .lumaKey(, andlow: high: inverted: ) .adaptiveThreshold(tookwindow: bias: inverted: ) invert:..mirror(tookvertical: flipped: ) flip:, and.tile(tookcount: mirrored: ) mirror:.elementaryCAandtotalisticCAtakewraps:(waswrap:), andmap(took_: _: _: _: _: clamped: ) clamp:. - A listing that asks the system is
available…().MIDIInput.sourcesis nowavailableSources(),MIDIOutputis.destinations availableDestinations(, and) ScreenCaptureis.apps( ) availableApps(), besideavailableDisplays()andavailableWindows().DMXReceiveris now the property.universeNumbers( ) universeNumbers. detailMappedfades by anamount.Meshtook.detailMapped( _: normal: scale: amount: ) strength:, andMeshMaterialwas.detailAmount detailStrength.- One label for an
Easing.Timelineand the.to( _: in: curve: ) CameraMovefactoriespushIn,pullOut,tilt, andrevealnow takecurve:(wasease:), the label@EasedandParamSmoothingalready use..eased
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--skipwarmup 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(puts the warm fringe film shows around its brightest highlights.threshold: radius: tint: amount: ) .filmGrain(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.amount: size: seed: ) Examples/draws a night street through them. EffectsEffects/ FilmLook - The cartoon look.
outline(draws an ink line around every mesh that follows,width: color: ) widthcanvas pixels wide at any distance, over.toonor any finish.Material,.outlineWidth outlineColor, andoutlined(_:color:)carry it on a material, andnoOutline()takes it off. TheInkedexample under3D/Materialsshows it. 3D - A light that follows the camera.
Light, or.relativeTo( .camera) LightingPresetfor a whole rig, keeps a light placed around the eye as the camera orbits..relativeTo( .camera) headlight()is a light from the eye down the view. World space stays the default. 3D
Simulation
- Two more fields that evolve.
.smoothLife(runs Rafler's SmoothLife, the Game of Life's rule on a continuous field, with the paper's glider parameters as defaults.radius: birth: survival: intervalSoftness: cellSoftness: ) .predatorPrey(puts prey and predators on one land, where the wake winds into spiral waves. Both run onhalfSaturation: predatorGrowth: predatorDeath: steps: ) makeSimField. SmoothLife joins theSimulation/Automatapicker, andSimulation/is new. EffectsPredatorPrey - Spins against the heat.
.ising(runs the Ising model on a field. A cold field grows into domains, a hot one is noise, and attemperature: field: sweeps: seed: ) Simclusters come in every size..isingCriticalTemperature IsingSpinnames the two levels for the brush, and the rule joins theSimulation/Automatapicker. Effects - Fireflies in step.
Kuramotois the model of synchronization, on the CPU: a crowd of oscillators, each pulled toward the phase of the others. It readscoherenceandmeanPhase, and hascriticalCoupling, alag, and a ringrange.Examples/is a meadow of fireflies falling into step. Coupled oscillatorsSimulation/ Kuramoto
Sound
- A step sequencer.
StepSequenceris 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 hasswing,rate,gate, andseed. Write one as"36 . . 36 . . 36 ."or from aRhythm. SeeExamples/. CompositionAudio/ Sequencer - An arpeggiator.
Arpeggiatorplays whatever is held, one note a step, in anyArpeggio.Patternover any number of octaves. Hold notes withhold(_:)andrelease(_:), or setnotesfrom a controller's held keys.latcheskeeps the last chord playing. Composition - Scheduled notes land on their sample. The sequencer and the arpeggiator hand back
ScheduledNotes, each with its beat, andSynthplays them to the sample..play( _: tempo: from: ) Synthgains.play( _: velocity: for: after: ) 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.noteis the short form, andchromais the twelve pitch classes.Audio/Tunerfollows the bundled violin, or the microphone with--mic, andAudio/GuitarTunertunes 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.touchesreadsdown, the fingers on the glass with a number, a place, and a contact width each, andtaps()drains the landings.Examples/plays it. Phone3D/ Phone/ PhoneTouches - The barometer. Tap Air and
latestAircarries 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.
PhoneDevicereads as the Mac's.latestFlow FlowTrackerfield does, throughvector(at:in:),samples(in:every:), andaverageFlow(in:), and addsinterval, the time between its two frames.latestFlowFrameis the frame it was measured on. Phone MotionFieldlives in the core. It moved fromOllinVisionand is now built from a closure, so a source of your own can produce one. A sketch that importsOllinsees it unchanged.
Connections
- The message bus a building speaks.
import OllinMQTT, andMQTTClient(host:)connects a sketch to a broker.subscribe(takes every room's reading. Read the latest on a topic, everything since the last frame, or bind it to ato: "home/ +/ temperature") @Param.MQTTMessagereads a number, a switch word, or a JSON field throughnumber(named:). SeeExamples/. MQTTIntegration/ MQTTRoom - 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
MQTTWillis 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(publishes everyOSCQueryServer( )) @Paramas 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 anOSCQueryNode.Examples/draws the tree it serves. OSCQueryIntegration/ OSCQuery - A color on the OSC wire.
OSCArgumentgains.color, the OSC 1.1rtype, read and written as aColor. An exhaustiveswitchover the arguments needs the new case. OSC
Parameters and the live window
--list-paramssays what a sketch declares. It prints every@Paramwith its name, its kind, its value, and what it accepts. It runssetup()first and honors what is given beside it, so--list-params --param radius=200 --cue duskdescribes that run. Each value is in the spelling--paramreads back. Export- A frame rate and a paper size are menus in the inspector.
@Param var rate:andFrameRate = .film @Param var sheet:present pop-up menus. The sheets go by their own names (Letter, Legal, Tabloid), which is also whatPaperSize = .a4 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-buildwaits for the one optimized build. In the engine it isSketchSessionand.landsPlainBuildFirst isOptimizing, withInspectorStatuson the chip. Live coding.optimizing - 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.
CodeCompleterin OllinRuntime is the engine. Live coding
Tools
ollin doctorsays what this machine can run. It checks macOS,swiftc, the GPU and what it supports, and the shader compiler. It also checks whichollinis 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 installnow puts zsh completions in place. They cover the subcommands afterollinand the flags of the one you are typing, each with a line on what it does.ollin completionsprints 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
PixelFieldexample. - The reference's Swift is compiled.
Scripts/now compiles every Swift block in thecheck-snippets .sh Docs/pages beside the Guide's.Scripts/reads the public surface undercheck-api-names .sh API/against the naming rules, and its first run named the renames under Changed.
Examples
- A homage after Ryszard Winiarski.
Examples/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.Recreations/ RyszardWiniarski - A homage after Vicente Rojo.
Examples/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.Recreations/ VicenteRojo
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….ParametricLSystemtakes.taperedTree( minimumLength: ) minLength:, andContourDetectortakes.detect( in: …maximumDimension: ) maxDimension:.HandTracker'smaximumHandCountis nowmaxHandCountin the initializer, the property, anddetect(.in: maximumHandCount: ) TrajectoryTracker'sminimumObjectRadius:andmaximumObjectRadius:areminObjectRadius:andmaxObjectRadius:. - The laser's limits too.
ILDAFileis now.maximumPointsPerFrame maxPointsPerFrame,EtherDreamDACis.maximumBatch maxBatch,EtherDreamDeviceis.maximumPointRate maxPointRate, andLaserSafetyis.maximumBrightness maxBrightness. - Every public
seed:is anInt.seed: variationnow needs noUInt64(...)around it. The types that took aUInt64areBoids,AntColony,ContinuousPacking,CrackGrowth,DielectricBreakdown,DiffusionLimitedAggregation,ForceLayout,Kuramoto,MeshGrowth,MeshReactionDiffusion,Vehicle, andPopulation.SplitMix64(seed:), the generator itself, keeps itsUInt64state word. - Seeded constructors take an
Intas well.DifferentialGrowthand itslineandring,Meanderand itsline, andNBody.clusterand.disktake anIntseed. So doHeightfieldand.diamondSquare .eroded, andpopulation(oncount: genes: seed: ) Sketch. - Configuration Booleans read as assertions or state.
Fit.Result.settledis nowisSettled, andCloudAlignmentis.applied isApplied.PathTracing.denoiseand itsdenoise:label aredenoises.DifferentialGrowthand its label are.fixedEnds hasFixedEnds.SchottkyPairingand.fromExterior toExterioraremapsFromExteriorandmapsToExterior.Wheel3D.drivenisisDriven, and thewheel(at:…driven:)label stays. - One spelling per kind of step.
PingPong.advance()andPingPongTextureare now.advance( ) swap().TimelineModelis now.step( byFrames: ) step(_:). - How much of an effect is
amount.Generatorand.grainGradient( …intensity: …) Generatornow take.pulsingBorder( …intensity: …) amount:.intensitystays for light. - A loader spells
withExtension:.PhysicsSnapshot(is nowresource: extension: in: ) PhysicsSnapshot(.resource: withExtension: in: ) - The state follows the verb.
SyphonClientis now.isActive isConnected, andSyphonClient.stop()isdisconnect(). - A destination is a path.
Automation,.write( to: ) Take.write(to:),PhysicsSnapshot,.write( to: ) World3D.save(to:), andILDAFiletake a.write( _: to: name: company: projector: ) Stringpath beside theURLthey 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.
drawPlanefaces 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
.cubefile.ColorLUTreads 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, withWireworldCellnaming its four states..schelling(is Schelling's board of two kinds sorting itself from a mild preference, withpreference: vacancy: mobility: passes: seed: ) SchellingCellfor the brush. Both join theSimulation/Automatapicker. Effects
Sound
- A note under the finger.
noteOnhands back aPlayingNote, andbend(_:semitones:),press(_:_:), andslide(_:_:)reach that one note while it sounds. A bend moves its pitch, pressure drives the bow, the breath, or the level (Voice), and a slide moves the filter's cutoff (.pressureAmount Voice)..Filter .slideAmount pitchBendbends the whole instrument. Synthesis - Per-note expression over MIDI.
MIDIInput.heldNotesreads 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.MIDIOutputsends bends, pressures, registered parameters, and a zone. MIDI - Pitch shift, freeze, and a stretched recording.
.pitchShift(moves the pitch without the length, andPitchShift( semitones: mix: )) .freeze(holds an instant. Both join the effect chain.Freeze( amount: )) stretched(by:)on aRecordingor anImpulseResponsegives 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.soundsreads as the Mac'sSoundClassifierdoes:confidence(of:),topClassification, the drainingevents(), andtimeSinceHearing(._: ) SoundClassificationandSoundEventnow live in the core, soimport Ollinalone spells them. Phone
Export and output
- A frame rate you can name. Every export's
fps:takes aFrameRate. A number still stands in, sofps: 60reads as before..film,.pal,.ntsc,.ntscFilm, and.ntscDoublename the awkward rates as exact fractions, and--fpstakes a name, a number, or a fraction. Export - A sheet by name for the machine exports.
GCode(and.plotter( ), paper: .a4) DXF(paper: .a3)size a drawing for a sheet, with a clear margin on every side.PaperSizecarries the ISO A series and the US three, turns with.landscape, and reaches the canvas presets throughcanvasSize(dpi:).--gcode-paperand--dxf-paperdo the same from the command line. G-code - The screen angles of a separation.
PrintSeparationreturns the angles a separation's halftone gives your inks, and.screenAngles( for: ) ProcessSeparationis 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.screenAngles - A laser optimizer from a projector's two numbers.
LaserOptimizer(sets one up in one line. LaserpointsPerSecond: refreshRate: )
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/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.Recreations/ SolLeWitt - 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 aFrameRate, where it was aDouble. 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. ADoublevariable needsFrameRate(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(where the label isthreshold: intensity: radius: ) amount:,hopfBases(spiral:)forspiralCount:,frameRendered(_:_:)forframeRendered(, and_: image: ) Mesh(forresource: extension: in: ) 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(_:), andsymmetricDifference(on a_: ) Meshare the four set operations a filledShapealready had, carried into space. What comes back is an ordinary closed mesh. Cutting is CPU geometry, so cut insetup(). 3D - Things break.
fractured(cuts ainto: seed: ) Shapeor aMeshinto convex pieces that fit back together exactly, and a point makes them crowd around the blow. With it comeconvexHull(of:)in space,Shape.area,centroid,bounds, andseparated(),Mesh.volumeand itscentroid, andWorld.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> --exrwrites a folder of them. Red, green, and blue hold the light itself, alpha holds coverage, and a 3D camera adds aZchannel. 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/records the clips, and the manifest moved toguide-clips .sh Media/media.json. - The site tells a search engine what it holds.
/sitemap.xmllists every page the build writes, each at the address its own canonical link claims, and/robots.txtnames 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.shbuilds 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
.mdin place of.html./llms.txtis 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 --remotewrites, could not useOllinSyphon. The build stopped withthe 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.tiltis how far the pen leans,stylus.twistthe barrel turn,stylus.isEraserwhich end is down, andstylus.isNearbycovers hovering. Everything reads zero under a mouse, and a take records the values.stylusanswers the way.tiltIsAvailable pressureIsAvailabledoes. 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, andmouseX/mouseYhold where it landed. Every host takes the drop. Input - A picture resized and cropped.
Imagereturns a resampled copy, the small working copy a stipple, a dither, or a mosaic wants..resized( width: height: ) Imagereturns a rectangle of the picture, clamped to it, and.cropped( x: y: width: height: ) Imagethe largest centered piece of a given shape. Cropping scales nothing. Images.cropped( toAspect: )
Effects
- Hatching that follows the picture.
layerdraws 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..filtered( .hatching( )) spacing,length, anddirectionsset the pen, the stroke, and how many layers stack. Effects - Shock, the picture flattened into regions.
layersmooths 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..filtered( .shock( )) iterationssets the level of abstraction, andradius,flow, andthresholdtune each round. Effects - A forest that keeps burning.
Simruns 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.forestFire( growth: lightning: )
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.creaseAngleis the dial between a drawing and a wireframe,Meshplaces each mesh, and.transformed( by: ) hiddenkeeps the covered stretches. Line drawing - Fog as one value.
fog(.mist)takes aFog: a color, aveil(how much of a surface at the camera's target distance is fog), and apooling(how fast it thins with height). One preset reads alike over a tabletop and a valley. The barefog(is unchanged. Atmosphere_: density: heightFalloff: ) - Five fog presets.
.haze,.mist,.thick,.groundMist, and.nightare the presets, andtinted(_:)takes another color. A@Paramof 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.makeupbrings a compressed phrase back up, andholdkeeps 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.rateanddepthare on every one, and amixof 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.--phototakes 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.
StillFramespublishes one picture as both aVideoFeedand aFrameSource, 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 VideoPlayerworks offline. Under a headless export it reads the same virtual playhead the frame does, so.snapshot( ) seek(to:)and thensnapshot()hands back the moment asked for. A still-imagedetect(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, andSamplePhotohands a sketch a real picture with its.portrait .load( ) creditcarried 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.handstandare framed upright so no limb runs off the edge, and each yields its skeleton.SamplePhoto.handsis two open palms with every finger separated, andVision/HandTrackingnow reads it. Sample photographs - Four streets and two tables.
SamplePhoto.alley,.street,.textiles, and.cityare whole scenes. Pixel sorting, seam carving, the frequency domain, and the picture-fit example now run on them.SamplePhotoand.breakfast .deskare tables seen from above, and object detection moved to the breakfast. Sample photographs - Two landscapes, the first wide pictures in the set.
SamplePhotoand.headland .boatsare 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.stonejoin the set. The page is what adaptive thresholding is for. The talavera repeats without a seam for3D/. The stone carries real relief, soMaterials/ Triplanar 3D/reads one photograph as its color and its height map. Sample photographsMaterials/ Parallax - A short film, for what a still cannot show.
SampleClip.danceis thirty seconds of a dancer on a plain studio ground, 960 square and silent, with the camera locked off.Vision/OpticalFlowandVision/ContourTraceread it where there is no camera. Sample photographs
Connections
- A table you put things on.
TUIOReceiverreads a tangible surface over the network.cursorsare touches,objectsprinted markers with their symbol and angle, andblobsshapes it found but cannot name. Each keeps its id while on the surface, andtouchputs one where it belongs..position( in: bounds) import OllinOSCis 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 proRes4444or the new--codec hevcWithAlpha. The other codecs still composite over black and say so. Export - DXF, a drawing for the shop.
--export-dxf panelwrites 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 - 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.
--hatchwrites fills as line work, andDXF(width:)andDraftingare the planner behind the export. DXF
Parameters and the live window
- Cues, looks saved and called back.
saveCue(keeps every parameter's value under a name, and"night") cue(brings them back over a fade."night", over: 2) nextCueandpreviousCuewalk the sheet. The live hosts keep them inSketch.cues.jsonbeside 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 nightrenders an export at a saved look. Cues
The website and the Guide
- Every example's page plays a clip.
Scripts/media.shrenders 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/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 WhitneyRecreations/ JohnWhitney/ Permutations - 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/ColorVisionand 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.
BodyTrackercould 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.detect( in: ) - 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 aphase: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:)understrokeCap(.round)is a dotted line.Contour.dashed(_:)andShape.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(threads a curve through points with a bend that flows evenly. The default spline is unchanged.points, spline: .hobby) .hobby(tunes it,tension: curl: ) Contour(andcurveThrough: spline: ) Shape(take the same choice, andcurveThrough: spline: ) HobbySpline(is the typed form. Geometrythrough: ) - Parquet deformations.
parquetDeformation(lays a tiling whose tile changes shape across it, with no piece coming apart. An edge is acolumns: rows: from: to: sweep: ) Profile(.straight,.tooth,.zigzag,.wave,.bump, or.custom), and aSweepsets which way the change runs. Readtilesfor the pieces oredgesfor line work. Parquet deformations - Lighter, darker, and the complement of a color.
ink.lighter(),ink, and.darker( by: 0.25) ink.complementderive 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(takes typed stops beside the tuple list.stops: [Ramp .Stop]) ramp.reversedruns 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(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..newton( roots: )) relaxationscales the step,phaseturns the palette, and a pixel that never lands is paintedtrapped. Effects - Gabor noise, a noise whose spectrum you design.
generate(sums small Gaussian blobs that each carry a cosine wave. The field has one.gaborNoise( )) wavelengthin pixels, a bandbandwidthwide around it, and one direction or every direction.impulsesis the quality andseedpicks the field. Noise - The same Gabor noise on the CPU and in a shader. The field is
gaborNoise(and thex, y, ...) GaborNoisetype on the CPU, andgaborNoise(p, ...)in a shader of your own. Noise - Brushwork, the picture as paint.
layerlays the layer on as paint patches that follow the picture's own flow, so detail flattens while edges stay crisp..filtered( .brushwork( )) radiusis the brush size,stretchhow far an edge draws it out, andsharpnesshow firmly the flattest patch wins. Effects - XDoG, the picture as pen and ink.
layerdraws a line wherever the layer has an edge, solid ink where it is dark, and paper everywhere else..filtered( .xdog( )) thresholdandsoftnessset the cut,radiusthe line scale,sharpeningthe push on edges, andforeground/backgroundthe ink and the paper. Effects - Depth of field from light.
LineSprayrenders an array ofSprayLines as depth of field the way a lens makes it. Each scattered point becomes aBokehball that grows with its distance from the plane of focus.makeLineSpray(makes one,_: sampling: passesPerFrame: bokeh: ) drawLineSpray(_:)draws it, anddeveloped(prints it. Depth of fieldexposure: ground: ) - A running mean of light.
makeAccumulator()returns anAccumulator, a layer that sums every pass drawn into it underwithAccumulator(and hands back the mean as_: passes: ) 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
sumandpassesare there for a shader of your own, andFilterprints accumulated light..develop( exposure: ground: ) makeRenderTarget(andprecision: ) makeFeedback(takeprecision: ) LayerPrecision. Accumulation.float32 - Particles as light.
drawParticles(deposits each particle's_: style: .light) color × alpha × areaas 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.marksstyle 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, sofieldOfView:takes the lens's own number beside.degrees(_:). PasssensorHeight:for a smaller format. 3D - Fractal fields. Three fractals join the raymarched field as leaves:
SDF3D,.mandelbulb( power: iterations: radius: ) .mengerSponge(, anditerations: size: ) .mandelbox(. They melt, carve, mirror, and repeat like any other leaf.scale: iterations: size: ) 3D/turns each one's own dial. CombinatorsRaymarching/ RaymarchedFractals - Sharp features from a field: dual contouring.
isosurface(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. Isosurfacesat: in: resolution: method: .dualContouring) - Tensegrities.
Tensegritydescribes a structure of struts held apart by cables, with three balanced forms ready-made:prism(struts:), the six-struticosahedron(, and astrutLength: ) tower(levels:).World3Dgives one weight, so it falls, lands on its own cables, and stands. Tensegrity.addTensegrity( _: at: ) - A tensegrity of your own.
imbalancesays whether an arrangement of your own can hold, anddrawTensegrity(_:)draws it where it is. A new.cablejoint kind is the rope beside.distance's rod. Tensegrity
Compute
- A kernel that sees the camera.
Camera3D.viewMatrix,projectionMatrix(,aspect: ) viewProjectionMatrix(, andaspect: ) matrices(aspect:)are public.ComputeParamspacks them, and.append( camera: aspect: ) cameraParams()does it for the active camera. In a kernel,ollin_projectprojects a world point to canvas points andollin_project_eyetakes a camera-space point.ballSample(float3)joinsdiscSample. Compute - Compute binds up to ten buffers.
compute(hands a kernel any number of_: buffers: count: params: ) ComputeBuffers of any element types at indices 0…9.compute(now takes two element types, so a kernel can read static geometry and write an_: reading: writing: ) OllinParticlebuffer.ComputeBindableandColor.linearRGBAare public. Compute
Sound
- A room of your own: convolution reverb.
Reverb(plays an instrument through animpulse, mix: , preDelay: ) ImpulseResponse: a recording, fading noise, or a room drawn from a rule..reversed()runs any of them backward. Turningmixnever cuts a tail that is sounding. Synthesis - Where an impulse response comes from. An
ImpulseResponsecomes from.load,.resource,.decay(, or a rule.seconds: damping: ) synth.reverbstill reaches it, andEffect.Kindgains.convolution. Synthesis - A tempo, and note lengths with names.
Tempois beats per minute with abeatsPerBar.tempois what a.beats( at: time) StepCounterwants each frame, andtempowhat a synth's.seconds( of: .eighth) for:wants.NoteLengthnames the lengths on a stave, and a number stands in for either. Composition - Every note length, and the rest of a tempo.
NoteLengthruns.wholedown to.thirtySecond, with.dottedand.tripletderiving the others.seconds(beats:),seconds(bars:),bars(at:), andsecondsPerBeatread the rest. Composition
Connections
- A board with no firmware of your own.
FirmataBoardinOllinSerialspeaks Firmata over a serial port, so a board running the StandardFirmata sketch every Arduino IDE ships answers pin by pin.analog(0)anddigital(read.2, pullUp: true) write(9, 0.5)andwrite(drive a PWM duty and a servo. Serial10, angle: 90) - A pin on a parameter.
bind(analog:to:)puts a Firmata pin on a@Param.write(13, true)drives a digital pin, andmessages()drains every decoded message. Serial - Timecode: a sketch that chases a timeline.
TimecodeClock(follows MIDI Time Code, the position a video deck, a show controller, a lighting desk, or a DAW sends. It reads asfrom: midi) timecode,seconds,frameRate,isPlaying, andisReversed.Timecodedoes the drop-frame arithmetic, andMIDIOutputand.send( timecode: ) send(sysEx:)cover the other direction. MIDI - The weather outside.
Weather(at:),Weather(, andin: "Oaxaca") Weather(read the conditions over a place every fifteen minutes:latitude: longitude: ) temperature,humidity,cloudCover, the wind,condition, and the day'ssunriseandsunset. 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, andisDaycome 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 leafwrites the frame as stitches, in the Tajima.dst .dstfile 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, andEmbroideryplans your own contours. Embroidery.stitches( _: in: ) - Settled frames in an export.
--settle N, orOllinApp, draws each written frame N times with the clock held and writes the last. An.exportSettle Accumulator's mean or aLineSpraythen 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-webrecords what a sketch draws over a duration and writes a self-contained page that plays it back in a browser.--inlinewrites a fragment for a page of your own. A sketch that declaresloopDurationrecords 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 aBatchrecorded 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 gainsready. Web - Layers and effects on the web page. The page carries layers drawn with
withTarget, everyGenerator, everyFilterandCombinethat is one shader pass,.gaussianBlur,.bloom, andpostProcess. AFeedbacklayer or a single-fieldSimFieldkeeps its state. The solves and the simulations with pipelines of their own still leave as video. Web - Shaders on the web page. A user
Shadercrosses withinfo.timeandinfo.mouselive on the page, and so do compiledVisualchains. 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. AraymarchResolutionbelow 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-controlsskips the probe. An inline fragment reaches them through its handle:params,get,set, andreset. Web - A weight limit on the web page.
--export-webrefuses a page past 25 MB instead of writing it, and the message names the--max-page-sizethat writes it anyway. In code, that ismaxBytes:onOllinApp.web(of:)andexportWeb, and aWebWeightRefusalcarrying the numbers. Web
The phone
- The sketch on the phone. A sketch runs on an iPhone or iPad.
ollin phone Sketchputs it there and installs it again on every save, its clock and parameters carried across, with the parameters live on the Mac..swift SketchRunneris public, so an app of your own can turn the checkpoint on. On the phone.beginInstallation - An app for the phone, from the generator.
ollin new <Name> --kind ios-appwrites a sketch as an iPhone and iPad app, with theproject.ymlthatxcodegenturns into the Xcode project.--team <id>orOLLIN_TEAMsets the signing team.ProjectRequestgainsteam, andCapabilitygainsstaysOnTheDesk, 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.
OllinInspectoris public, so a host's own card can sit beside the shipped ones..Palette - 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 sitewrites the README, the Guide, the reference, and every example with its source out as a static website, from the same filesollin docsreads. A workflow publishes it to GitHub Pages. Its front page playsExamples/as the pageWeb/ BreathingRing --export-webrecords for it. The reference offline - Search on the website. Every page
ollin sitewrites 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/checks the listings against the build, so a change to the public surface reads as a diff in review. APIapi-surface .sh
Examples
- A homage after Frieder Nake.
Examples/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.Recreations/ FriederNake/ HommageAPaulKlee --export-svggives the plotter drawing back. - A homage after Josef Albers.
Examples/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.Recreations/ JosefAlbers/ Homage --export-gridprints a wall of them. - A Web example group.
Examples/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.Web/ BreathingRing
Changed
The first two can stop a sketch from compiling.
- Note lengths and tempos are typed.
Note.lengthandSonificationare.noteLength NoteLengths, andNote.seconds(at:),Synth, and.play( _: tempo: ) Synthtake a.play( _: step: tempo: ) Tempo. A literal compiles as it did. ADoublevariable becomesTempo(bpm)orNoteLength(beats:). Composition - A typed box for bounds.
Box3replaces the(tuple inmin: Vector3, max: Vector3) Scene.bounds,Metaballs.bounds,ShadowArt.bounds,PhoneSceneMesh,.bounds PhonePlanes.bounds, and thein:box ofisosurfaceandshadowArt..minand.maxread as before, and a tuple literal becomesBox3(min:max:).center,size,longestSide,padded(by:), andunion(_:)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 speedswift run -c releasegives it.--no-optimizecompiles 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 anySketchExtensionthat 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, andwantsRenderedFrame/wantsRenderedTextureare read once per frame. Extensions - The
Rendering/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 aDepthOfField noClearpile 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
ParamValueconformance could not be wrapped.@Param(is now public, with a bare form for a type whose constraints areconstraints: ) Void. The source write-back keeps a wrapper such asOpacity(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
noClearcanvas plus a tone map and left out the divide by the number of passes. Both now point atAccumulatorandFilter.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(.
Added
The framework
- Drawing. A p5-style API over a Metal core:
setup()anddraw(), and bare calls likedrawCircleandbackground.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.metalfile, with errors reported at your own line numbers. ChainableVisuals 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.
@Paramproperties 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
Worldwith 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
ollincommand. One loose.swiftfile is a whole sketch, run from any directory.ollin newwrites a starter,ollin installputs the command on PATH, andollin checkcompiles a shader on this machine's GPU.ollin docsandollin examplesread 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.
@Paramproperties 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 newandollin generatewrite 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
- The reference. About two hundred pages under Docs/, with a short concept page for each idea the reference assumes.
- The Guide. Thirty-two chapters and four appendices: a practical introduction to creative coding taught through Ollin.
- For contributors. CAPABILITIES.md inventories every capability's invariants, ARCHITECTURE.md explains the internals, and ATTRIBUTION.md credits the influences and the techniques.
[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