Half a croissant, on a plate, with a sign in front of it saying '50c'
h a l f b a k e r y
I CAN HAZ CROISSANTZ?

idea: add, search, annotate, link, view, overview, recent, by name, random

meta: news, help, about, links, report a problem

account: browse anonymously, or get an account and write.

user:
pass:
register,


         

PC bitmap value reversal

Politically correctness calls for white to be zero and black to be one
  (+1)
(+1)
  [vote for,
against]

So, the next OS version should correct this historical error, and there will be a lot of money for all the companies that worked on bug 2000 and then went out of business in 2001.
pashute, Jan 30 2014


Please log in.
If you're not logged in, you can see what this page looks like, but you will not be able to add anything.



Annotation:







       Oh dear, oh dear - it's political correctness gone *MAD*!
Zeuxis, Jan 30 2014
  

       //Politically correctness calls for white to be zero and black to be one//   

       Why does it?   

       What is wrong with black being 0, white being 16777215 and 1 representing very dark blue?
Loris, Jan 30 2014
  

       //What is wrong with black being 0, white being 16777215 and 1 representing very dark blue?//   

       Actually, representing colors as floating point RGB triplets between 0 and 1 is quite useful, because the product of any values between 0 and 1 will itself be between 0 and 1 (inclusive). The standard integer representation between 00h and FFh for each color doesn't have that property, which makes such a color representation a pain to work with.   

       In case the reason why this is a useful mathematical property for colors isn't obvious, it's because graphical compositing is done largely through multiplication. Take two pixels and an alpha value (all expressed as floats between 0 and 1), multiply the first pixel by the alpha value and the second pixel by (1 - alpha), and add them together. The result will be a blend of the two pixels as “weighted” by the alpha value, and will always be between 0 and 1.
ytk, Jan 30 2014
  

       On that basis I suggest that it is obvious that we should extend pashute's plan to full glorious colour using the simple and straightforward maths of quarternions. This only has the minor drawback of needing to be able to cope with a gamut including negative values.   

       Black would remain at zero, but now would take pride of place at the centre of the colour cube.
Loris, Jan 30 2014
  


 

back: main index

business  computer  culture  fashion  food  halfbakery  home  other  product  public  science  sport  vehicle