Avarage Color Picker
Home
Demos
Installation
Download
Demos
Image Colors
Example
Usage
Your color is
< img src="assets/img/nature.jpeg" alt="nature" id="image">
$(document).ready(async function (){
var rgb = await getImage(document.getElementById('image'));
console.log(rgb)
})
Do not forget the use this function after the image or dom loaded !!!
Video Colors
Example
Usage
Your color is
< video id="video" muted controls playsinline >
< source type="video/mp4" src="your-video">
< / video>
getVideoRGB(document.getElementById('video'),
function(result){
result
});
Developed by
YHK