IEEE 754 (cdn.fosstodon.org)
submitted 2 years ago by to c/programmerhumor@lemmy.ml
 

Stolen Cross-posted from here: https://fosstodon.org/@foo/113731569632505985

Omni-Man looking at the IEEE 754 Single Precision Floating-Point Standard and saying "look what they need to mimic a fraction" with the rest of the meme whited out
you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago* (2 children)

Actually, you can consider RGB values to be (triplets of) floats, too.

Typically, one pixel takes up up to 32 bits of space, encoding Red, Green, Blue, and sometimes Alpha (opacity) values. That makes approximately 8 bits per color channel.

Since each color can be a value between 0.0 (color is off) and 1.0 (color is on), that means every color channel is effectively a 8-bit float.

  • source
  • parent
  • hideshow 2 child comments