this post was submitted on 20 Oct 2024
79 points (85.0% liked)

Data is Beautiful

1093 readers
84 users here now

Be respectful

founded 4 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 3 points 12 hours ago

Not a colorololologist either, but I'm guessing, you scan it and then calculate the average of the individual pixels. You can convert RGB color values to HSV color values to get the hue, saturation and value.

But calculating the average of the hue degrees (like was done for this post) is non-sense.
0° is red, as is 360°, so you get completely different averages, depending on how you calculate them:

  • (0°+120°+240°) / 3 → 120° (green)
  • (360°+120°+240°) / 3 → 240° (blue)