Tooling for graphics prototyping with HTML Canvas.
- Provides three functions;
init
andupdate
are used to set or update the global state, whereasdraw
is used to paint on the canvas, based on the current state. - non-antialiased drawing methods:
drawText
,drawCircle
- Gulp build process allows SCSS, ES6 syntax, modules etc.
- Minimal express server, proxied via BrowserSync
- Clone the repo:
$ git clone https://github.com/thykka/jsdp1.git
- Switch to Node v12, with nvm installed:
$ cd jsdp1
$ nvm use
- Install gulp-cli and project dependencies:
$ npm i --global gulp-cli
$ npm i .
- Start the Gulp task for building and watching for changes:
$ gulp
See this repo's other branches for some small demo projects