Questions tagged [getimagedata]

a function to access the raw pixel data of HTML5 canvas element.

a function to access the raw pixel data of HTML5 canvas element.

For more information see the MDN documentation of CanvasRenderingContext2D.

211 questions
-4
votes
1 answer

how to print only rgb value in console.log in nodejs get-image colors library?

It's an array of object.I want to print only rgb value so that i can match it with other rgb value in if else statement. plz help. Color { _rgb: [ 4, 4, 4, 1, _clipped: false ] }
1 2 3
14
15