The robot trajectories for this painting have been calculated by transferring numerically identifed cost functions from a motion capture analysis of a human artist.
The linked paper describes the basic mathematical concepts we use to generate painting motions for the robot. Although the painting shown here has been generated by a newer platform, the approach is the same.
The video shows a short part of the painting process
Library used for robot modeling
Numerical Software Package used for trajectory calculations