v4.1.0
tldraw v4.1.0
Welcome to version 4.1.0 of tldraw! This is a maintenance release including a new starter kit, a few minor API additions, and a handful of improvements and bug fixes.
Shader starter kit (#6847)
We're excited to introduce the Shader Starter Kit – a new template that demonstrates how to integrate WebGL shaders with tldraw to create dynamic, interactive backgrounds that respond to canvas interactions. Try it out and read the docs here.
https://github.com/user-attachments/assets/14b02bfb-6730-4d85-a482-a169292eab09
What's included
The starter kit comes with a reusable WebGLManager base class and four complete shader examples to get you started:
- Fluid Simulation - Real-time Navier-Stokes fluid dynamics that respond to shape movements
- Rainbow - Animated gradient effects with time-based animations
- - Dynamic shadow casting from shapes using raymarching and signed distance fields