In this example, we combine everything we learned so far. We use circles, rectangles, lines, polylines, and polygons here.
We start with the front itself. Note that we not only have a class on the wall element but on the whole SVG as well.
-100, -100
200, 200
Then we add a roof on top of it. This is the only thing that is new here. We use a polyline. The difference between a polyline and a polygon is that a polygon will always close itself, and the polyline will stay open. Note that we are using the stroke-linecap property again as we did with the gingerbread figure example.
-100, -100
200, 200
Then we keep adding simple elements for the door, the windows, and the stairs. The final code for the image on the left will be as follows: