Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 838 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 838 Bytes

📕 canvas-sketch-util → Documentation


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:

// 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 & interpolation utilities
  • random - A random number generator
  • color - RGB and HSL color utilities
  • geometry - Geometry & shape utilities
  • penplot - Pen plotter & AxiDraw utilities
  • shader - A full-screen GLSL shader utility