--- layout: post title: Basic Drawing documentation is live ---

Hi Makers,
I've just wrapped up some documentation on Basic Drawing. There are many simple walkthroughs, code examples, and hands-on demos using JsFiddle. Please take a look, I guarantee it will be worth your time - at the end, you'll know how to create your own skateboard deck!

{% highlight javascript %} var makerjs = require('makerjs'); function truckBolts() { var tx = 1 + 5/8; var ty = 1 + 1/8; var bolts = new makerjs.models.BoltRectangle(tx, ty, 7/32 / 2); bolts.origin = [tx / -2, ty / -2]; this.models = [bolts]; } function deck(width, length, truckOffset) { var board = new makerjs.models.Oval(length, width); board.origin = [0, width / -2]; var truck1 = new truckBolts(); truck1.origin = [truckOffset, 0]; var truck2 = new truckBolts(); truck2.origin = [length - truckOffset, 0]; this.models = { board: board, truck1: truck1, truck2: truck2 }; } var svg = makerjs.exporter.toSVG(new deck(8, 32, 7)); document.write(svg); {% endhighlight %} try it in JsFiddle ⇗

Let me know what you think by visiting our Gitter chatroom.

Thanks,
Dan