The colour describes the acceleration of the pen. Red means a sudden change in acceleration while blue means a constant acceleration. It can be seen in the example on the left that the accelerations are smooth and regular, while the example on the right is abrupt and twitchy.