Computed drawing using P5.js