Skip to content

Ollin 0.19.0

Latest

Choose a tag to compare

@eaviles eaviles released this 29 Nov 20:57
· 33 commits to main since this release
0.19.0
f6f0746

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

Added

The phone and real surfaces

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

Vision

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

Geometry, simulation, and 3D

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

Running a sketch, and the website

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

Examples

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

Changed

Layers and filters

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

3D and the phone

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

Sound, simulation, and export

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

The website and the Guide

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

Fixed

Layers and filters

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

3D

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

Vision and the phone

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

Sound and devices

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

Running, takes, and export

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

The website

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