Smooth vector paths and motion trajectories are fundamentally mathematical equations.
Instead of computing the polynomial Bernstein expansion formula directly, ExodeUI uses De Casteljau's algorithm for continuous linear interpolation:
export function deCasteljau(points: { x: number; y: number }[], t: number) {
if (points.length === 1) return points[0];
const next = [];
for (let i = 0; i < points.length - 1; i++) {
next.push({
x: points[i].x + (points[i + 1].x - points[i].x) * t,
y: points[i].y + (points[i + 1].y - points[i].y) * t
});
}
return deCasteljau(next, t);
}

Figure 1: Interactive Bezier tangent manipulation on canvas.
Figure 2: Evaluating smooth motion trajectories with continuous derivatives.
Explore how Rive alternatives implement parametric vector geometry.
🚀 Experience Code-Native Design with ExodeUI
Tired of paying the "Figma Tax" and spending half your sprint translating static mockups into code?
- 🌐 Compare Tooling: Looking for runtime-free motion design tools? Compare the leading Rive alternatives in 2026.
- ⚡ Launch Web Canvas Studio: app.exodeui.com
- 📦 Install via NPM:
npm install exodeui - 💻 Multi-Framework Export: First-class support for React, Vue, Svelte, Solid, and Angular.
What is your biggest frustration with Figma in your daily workflow? Let us know in the comments below!
Top comments (0)