animation-utils

[![NPM Version](https://img.shields.io/npm/v/animation-utils.svg)](https://www.npmjs.com/package/animation-utils) [![codecov](https://img.shields.io/codecov/c/github/Undistraction/animation-utils.svg)](https://codecov.io/gh/Undistraction/animation-utils)

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Mar 17, 2018Mar 14, 2018Minified + gzip package size for animation-utils in KB

Readme

animation-utils

NPM Version codecov Build Status DUB Greenkeeper badge Node Security

Animation utilities

Constants

  • TAU

Trigonometry

  • point
  • degToRad
  • radToDeg
  • angleToPoint
  • distanceBetweenPoints

Random

  • randomInRange
  • randomIntInRange
  • randomInInRangeInclusiveMax

Color

  • rgbArrayToString
  • rgbaArrayToString

Canvas

  • canvasMidpoint
  • canvasContentDimensions
  • canvasScaleValue
  • canvasAvailableMimeTypes
  • canvasToImage
  • canvasToDownload

Device

  • devicePixelRatio

Oscillators

  • sineOscillator
  • squareOscillator
  • sawtoothOscillator
  • reverseSawtoothOscillator
  • triangleOscillator

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.