Home▸Robotics & Kinematics▸Robot Arm Painting: Toolpath-Driven Brushstroke Generator (2D)

Robot Arm Painting: Toolpath-Driven Brushstroke Generator (2D)

Top-down 2D companion to the SCARA painting-robot simulator: the same closed-form 2-link analytic inverse kinematics traces rose curves, Lissajous figures and expanding spirals while depositing paint dabs, with drag-to-pan and scroll-to-zoom over the canvas and live joint angle, tool speed and coverage readouts.

Robotics & Kinematics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-robotics-topic-63 ↗ Open standalone

This top-down 2D companion to the 3D SCARA painting-robot simulator solves the same closed-form two-link inverse-kinematics problem, computed independently every frame: pick a generative toolpath (a rose curve, a Lissajous figure, or an expanding spiral) and the arm's shoulder and elbow angles are derived geometrically to keep the brush exactly on that curve, depositing instanced paint dabs whose spacing and hue track the tool's real angular speed. A fixed-size ring buffer holds the dabs so the canvas coverage caps out realistically instead of growing without bound, and you can drag to pan or scroll to zoom the view while the arm keeps painting. Live readouts track both joint angles, instantaneous tool speed, and how much of the canvas has been painted.

⚙ Under the hood

Top-down 2D companion to the SCARA painting-robot simulator: the same closed-form 2-link analytic inverse kinematics traces rose curves, Lissajous figures and expanding spirals while depositing paint dabs, with drag-to-pan and scroll-to-zoom over the canvas and live joint angle, tool speed and coverage readouts.

roboticsinverse-kinematicsscaragenerative-arttoolpath2dcanvas

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)