Copied to clipboard

Detailed

Minified

Kleur

Work with colors in image.


// Create Object
Kleur = new Kleur();

// Returns the image tag
imageObj = Kleur.init(imgLink);

// After the image is Loaded
imageObj.onload = function(e) {
  let PixelArr = Kleur.getPixelArray(imageObj);
  let PixelColor = Kleur.generateColorArray(PixelArr);
}
            

Music Player Example

Get the code on Codepen