@moarrubber in #5:
There is a lot of repetition in the attributes passed to drawObjs. Sometimes fill, stroke, and strokeWidth are provided, sometimes only strokeWidth. Can these be defined once and re-used? I can discern at least 3 different categories of attributes: wheels, frame, and virtual features.