Skip to content

lopsae/rac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7592763 · Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023
May 8, 2021
Oct 18, 2023
Sep 25, 2023
Oct 13, 2023
Oct 18, 2023
Oct 18, 2023
Oct 17, 2023
Oct 18, 2023
Sep 15, 2023
Oct 18, 2023
Oct 18, 2023
Oct 6, 2023
Oct 18, 2023
Oct 18, 2023
Oct 18, 2023

Repository files navigation

RAC - Ruler and Compass

Library to express geometrical constructions through ruler-and-compass operations.

RAC can be used in browser with drawing done through a P5.js instance, or in a node enviroment as a npm package.

Tutorials

A collection of interactive tutorials is available in ObservableHQ.

Tutorials Home Thumbnail Tutorials Home

Base Drawables Thumbnail One - Base Drawables

Complex Drawables Thumbnail Two - Complex Drawables

Styles Thumbnail Three - Styles

NPM

RAC is available as an npm package at npm/ruler-and-compass:

npm install ruler-and-compass

UNPKG, Browser

For browser use, RAC is available as a single file library through UNPKG at unpkg.com/ruler-and-compass.

It 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"></script>

Or imported as an AMD package with a module loader like RequireJS:

requirejs(["https://unpkg.com/ruler-and-compass"], Rac => { ... })

License

RAC is licensed under the MIT License.