@pangenerator/utils
A collection of snippets for creative coding
Last updated 6 days ago by kgolinski .
(MIT OR Apache-2.0) · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @pangenerator/utils 
SYNC missed versions from official npm registry.

UTILS

Various functions used in javascript tools

List of functions

  • map (value, low1, high1, low2, high2)
  • clamp (val, min, max)
  • random (low, high)
  • randomDir ()
  • lerp (start, stop, amt)
  • lerp3 (A, B, amt)
  • lerpedPoints (A, B, count)
  • square (a)
  • dist (A, B)
  • norm (value, start, stop)
  • degrees (radians)
  • radians (degrees)
  • randomName (N)
  • timestampName ()
  • randomIndex (N)
  • shuffleArray (array)
  • lerpColor (a, b, amount)
  • precision (value, precision)

Current Tags

  • 0.2.1                                ...           latest (6 days ago)

6 Versions

  • 0.2.1                                ...           6 days ago
  • 0.2.0                                ...           7 days ago
  • 0.1.1                                ...           7 days ago
  • 0.1.0                                ...           7 days ago
  • 0.0.4                                ...           7 days ago
  • 0.0.3                                ...           7 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 56
Last Day 0
Last Week 56
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |