How to use the fast-average-color/dist/index function in fast-average-color

To help you get started, we’ve selected a few fast-average-color examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iondrimba / pwa-music-player / src / components / AlbumCover / index.js View on Github external
constructor(props) {
    super(props);

    this.loader = React.createRef();
    this.image = React.createRef();
    this.view = React.createRef();

    this.fac = new FastAverageColor();

    this._onLoadDummyImage = this._onLoadDummyImage.bind(this);
  }

fast-average-color

A simple library that calculates the average color of images, videos and canvas in browser environment.

MIT
Latest version published 9 months ago

Package Health Score

64 / 100
Full package analysis

Popular fast-average-color functions