Is there a simplier way to write this code?

Less code while still being an svg element you mean or are you open to things like canvas? If staying svg, I wouldn’t say there is a way to do it in less code since svg consists of elements that describe the shapes and their coordinates. I mean you could do a polyline element, but that is just going to be one element with a ton of points in it and probably won’t be any shorter in the number of characters used.

2 Likes