g.connect uses a Color object.
toSVG also supports Color-like objects.
Use Color objects in g.quadCurve and g.freehand.