The mathematics of TrueColor (and what it has to do with law and legal education)
This I remember, and this I love. Blogging since Bastille Day has rekindled an old passion of mine: mathematics in motion. The mathematics of TrueColor arose in connection with website maintenance. And now footfalls echo in my memory down a passage I did not take, towards the door I now will open into the rose-garden.
I needed to redo the background in a .jpg file. "What color?" asked Microsoft Paint. "Ochre," I replied. But the oracle of Redmond understood me not. She demanded values in red, green, blue.
In despair, I asked Dr. Peter Jones, purveyor of the Web's easiest color calculator. "DDDD99," I muttered. "221 221 153," he replied.
And thus the hex was broken.
The six-digit codes designating TrueColor values represent the culmination of longstanding efforts to master the fascinating mathematics of color perception by humans in order to direct color production by machines. The graphic at the top of this post depicts the first step. The CIE (Commission International d'Éclairage) mapped human color perception onto the two-dimensional chart depicted here. Using the CIE chart, as French as the metric system but as intuitive as fathoms and furlongs, proved as easy as charting great circle routes on a flat map.
The CIE color chart gave way to the more geometrically satisfying HSV system for expressing color as a function of hue, saturation, and value. The HSV model resembles a cone, and slicing it generates conic sections that express some portion of the universe of visible color in a useful way. The whole enterprise is vaguely reminiscent of navigating according to spherical coordinates.
So much for modeling how the human eye perceives color. How can a machine produce the 10 million different colors that the sharpest human eye can see? Coding the visible spectrum as different portions of red, green, and blue -- with each constituent color assigned eight bits of information -- yields 256 x 256 x 256 colors, or 16,777,216 in all. This familiar RGB (red green blue) color scheme, traceable to the awful days of the four-bit, 16-color palette of IBM's color graphics adapter, is now expressed in hexadecimal format. Since 16 x 16 equals 256, base 16 mathematics allow us to express any value from 0 to 255 with exactly two digits. Digits 1 and 2 represent red, digits 3 and 4 represent green, and digits 5 and 6 represent blue. DDDD99 -- quite a bit of red and green, with considerably less blue -- produces Jurisdynamics' background color, casually described as "ochre."
Very well then. What does all this have to do with law and legal education?
Since launching this blog, I've run out of digits to tally the number of people no more than one degree of separation from law who have confessed bewilderment at the idea that law might -- and indeed should -- be quantified to the very limits of the power of numbers to describe the world and to prescribe how best to fix its flaws. Law school, so I was told, was the refuge from numbers, equations, graphs. Check your probability distributions at the door. We went to the law school because we bombed the GMAT, much less the MCAT.
Ah, but there lies the rose-garden. The world is filled with problems that can be expressed in numbers. If the law harbors any hope of solving them, it cannot afford to discard so basic a tool as mathematics. As undergraduates approach the LSAT, as 1Ls matriculate, as professors end their collective estivation, Jurisdynamics offers this wish for the coming academic year. Would it be that our profession no longer confessed -- no longer cherished -- its rampant innumeracy. Would it be that the law, reunited with the tools of quantitative analysis and reinvigorated with an appreciation of mathematical beauty, might cease to be the mathematical waste land of the social sciences.
2 Comments:
Sad. True, but still. Sad.
The walls of our fortresses keep falling against the insatiable numerical horde.
I used this tool to tweak the color scheme of my blog. I wish I'd found it sooner and that all browsers would display the same colors the same way. Apparently, only 216 colors are universally supported. The rest are sporadically supported for backgrounds and text and stuff, even though all the colors are actually fine if you use an image. Which is why you can see a very very faint box around my blog's logo which I'm too lazy to fix right now.
If the programmers that designed HTML can't figure out how to make an idiot-proof system, I'm not sure lawyers can.
Post a Comment
<< Home