image_getpixel | R Documentation |
Extracts hex color of the pixel at the specified location
image_getpixel(img, geometry)
img |
magick image |
geometry |
point geomentry (generated by 'magick::geometry_point()') in the format ('+x+y') |
hex value of the color
editing
,transform
## Not run: if(interactive()){ frink <- image_read("https://jeroen.github.io/images/frink.png") image_getpixel(frink, geometry_point(100,100)) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.