The HTML Canvas is the perfect meeting point of art and maths. It allows you to draw things in almost any way you can imagine. It’s basically a Photoshop with no GUI (although you can make one). You can use vectors and get bitmap data. And then you can play around with the maths.