Umfeld cookbook
Practical recipes for making things with Umfeld, organised like a book you can read front-to-back or dip into. Every snippet comes from the real umfeld-examples repository. If you have written a Processing sketch before, you already know the shape of this — same function names, now in C++. New here? Begin with installing Umfeld, or run code in the playground.
Getting started
The shape of every sketch, the coordinate system, math helpers, and reacting to the mouse and keyboard.
Chapter 2Drawing text, curves, and shapes in 2D
Shapes, color, images, type, curves, custom polygons, SVG shapes, and offscreen buffers.
Chapter 3Drawing in 3D — lights, camera, action
The third dimension — primitives, lighting, textures, meshes, and moving the camera.
Chapter 4Working with data
Text files, CSV tables, XML, and the C++ stand-ins for Processing's String, array, ArrayList and HashMap.
Chapter 5Exporting and saving
Saving frames and images, vector PDF, 3D OBJ files, text, and raw binary data.
Chapter 6Working with video
Playing movie files, reading their pixels, controlling speed, seeking, and blending.
Chapter 7Sound and audio
Umfeld's native audio engine — oscillators, samples, envelopes, FFT, drum machines and effects.
Chapter 8Camera and computer vision
Reading a live webcam, working its pixels, and simple thresholding and color tracking.
Chapter 9Building for the web (WebAssembly)
Run the very same C++ sketch in a browser by compiling it to WebAssembly with Emscripten.
Chapter 10Connectivity — MIDI, OSC, and devices
Talk to the outside world — MIDI controllers, OSC over the network, serial ports, and game controllers.