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

StarsIssuesVersionUpdatedCreatedSize
animation-utils
000.5.104 years ago4 years agoMinified + 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.