The robot trajectories for this painting have been calculated by applying physical cost functions like high joint jerks and end effector velocities.
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.
Library used for robot modeling
Numerical Software Package used for trajectory calculations