This painting example is one of the basic EaselJS samples. You can download the complete source code of the project from EaselJS's GitHub:
https://github.com/CreateJS/EaselJS/blob/master/examples/CurveTo.html
3.15.223.160