RAC — Ruler and Compass
Documentation for RAC version: 1.2.1
Rac
is the main class and container of all other classes.
P5Drawer
is the currently implemented drawer, which supports drawing using a P5.js instance.
Tutorials
A collection of interactive tutorials is available in ObservableHQ.
Tutorials Home |
One - Base Drawables |
Two - Complex Drawables |
Three - Styles |
NPM
RAC is available as an npm package at npm/ruler-and-compass:
npm install ruler-and-compass@1.2.1
Browser
For browser use, RAC is available as a single file library through UNPKG at unpkg.com/ruler-and-compass.
This can be imported directly as a script, which will assign the Rac
constructor to the Rac
global variable:
<script src="https://unpkg.com/ruler-and-compass@1.2.1"></script>
Or imported as an AMD package with a module loader like RequireJS:
requirejs(["https://unpkg.com/ruler-and-compass@1.2.1"], Rac => { ... })
Git
Project repository: github.com/lopsae/rac
git clone https://github.com/lopsae/rac.git
License
RAC is licensed under the MIT License.