Average color of an image
Scientists have been able to determine the average color of the universe but in how many bytes can we find the average color on an image?
Your input will be a single image which you will need to find the average of the colors in the image and output a hex color-string (
#??????). The image can be any of the following formats
- JPEG 2000
The input can also be taken as a URL/URI to the image.
Build-in functions which calculate averages or sample the image at once such as
ImageMeasurements are not allowed.
Results will differ slightly depending on how you calculate the average and which color models you use. I've added RGB and LCH (HSV) values for the images below.
#53715F RGB, may also be
#3B7D3D LCH (HSV)
#96753C LCH (HSV)