Start a new shape like this: $ stroke-width stroke fill For example... $ 1.0 0x000000ff 0xff0000ff Then give a list of curves in the form: x y x2 y2 x3 y3 ... where (x2, y2) and (x3, y3) are control points on the curve. To close the shape, use a period (.) on a line by itself. . So, a full shape description looks like this: $ 1 0x000000ff 0xff0000ff 0 0 0 0 0 0 100 0 100 0 100 0 100 100 100 100 100 100 0 100 0 100 0 100 . Import and transform another file like this: < filename sx rx tx ry sy ty Where sx, rx, tx, ry, sy, and ty are the first two rows in a linear transformation matrix. The file will be transformed by this matrix. sx rx tx ry sx ty 0 0 1 To import without transforming, just use these values: < filename 1 0 0 0 1 0