canvas-sketch-util
Version:
Utilities for sketching in Canvas, WebGL and generative art
29 lines (19 loc) • 838 B
Markdown
#### <sup>:closed_book: [canvas-sketch-util](../README.md) → Documentation</sup>
---
### `canvas-sketch-util`
API Documentation for the various utilities/modules within `canvas-sketch-util`.
### Importing
The modules are generally required individually to keep bundle size smaller, such as:
```js
// Grab all math utils
const math = require('canvas-sketch-util/math');
// Or, grab just a select few
const { fract, mod, clamp } = require('canvas-sketch-util/math');
```
### Modules
- [`math`](./math.md) - Math & interpolation utilities
- [`random`](./random.md) - A random number generator
- [`color`](./color.md) - RGB and HSL color utilities
- [`geometry`](./geometry.md) - Geometry & shape utilities
- [`penplot`](./penplot.md) - Pen plotter & AxiDraw utilities
- [`shader`](./shader.md) - A full-screen GLSL shader utility