+ 1

How can I get the color value of image

help

20th Dec 2020, 10:57 AM
Khumoyun
Khumoyun - avatar
5 Réponses
+ 3
you can get the color of each pixel with let pix = ctx.getImageData(pageX, pageY, 1, 1); pix will be an array with rgb and opacity values. It is slow.
20th Dec 2020, 12:32 PM
bell
bell - avatar
+ 2
Thank u very much
20th Dec 2020, 11:15 AM
Khumoyun
Khumoyun - avatar
0
Usman Muhammed , will you please stop spamming!?!
20th Dec 2020, 12:27 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
bell thank u
20th Dec 2020, 12:45 PM
Khumoyun
Khumoyun - avatar