Two dimensial input in oTree It uses EaselJS The code is a slightly adapted version of this: http://embed.plnkr.co/PwUySWSZVJnw5CQkKulB/