Getting Started
Try it now
For the browser
Download the browser-based version of Maker.js, then upload it to your website:
http://maker.js.org/target/js/browser.maker.js
Or you can link to it:
<script src="http://maker.js.org/target/js/browser.maker.js" type="text/javascript"></script>
<script src="https://pomax.github.io/bezierjs/bezier.js" type="text/javascript"></script>
<script src="http://opentype.js.org/dist/opentype.js" type="text/javascript"></script>
Then, in your JavaScript, use the require function to get a reference:
var makerjs = require('makerjs');
Including via CDN
<script src="https://cdn.jsdelivr.net/npm/makerjs@0/target/js/browser.maker.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bezier-js@2/bezier.js"></script>
<script src="https://cdn.jsdelivr.net/npm/opentype.js@0/dist/opentype.js"></script>
Then, in your JavaScript, use the require function to get a reference:
var makerjs = require('makerjs');
For Node.js
To depend on Maker.js, run this from the command line:
npm install makerjs --save
Then, in your JavaScript, use the require function to get a reference:
var makerjs = require('makerjs');
Next: look at how to do some Basic drawing.
Visit the Maker.js Playground to edit and run JavaScript from your browser.
Each of the demos will also open in the playground so that you can explore and modify their code.