const plotter = require('./../index.js')();
const path = require('path');

const job = plotter.Job('hello');
job.svg(path.join(__dirname, 'svg', 'hello.svg'));

// writing to a png file
const file = plotter.File();
file.export(job, path.join(__dirname, 'hello.png'));

// anonymous call to serial
plotter.Serial('/dev/tty.wchusbserial1410').send(job);
@@ -102,16 +102,110 @@
 ello');%0A
+%0Alet x = plotter.width / 2;%0Alet y = plotter.height / 2;%0A%0Afor (let i = 0; i %3C= 360; i+=20) %7B%0A  
 job.svg(
@@ -230,28 +230,121 @@
 e, '
+hello.
 svg'
+)
 , 
-'hello.svg'));
+%7B%0A    x: x,%0A    y: y,%0A    width: plotter.width / 3,%0A    angle: i,%0A    origin: %7Bx: 0, y: 0.5%7D%0A  %7D);%0A%7D
 %0A%0A//

update SVG example