[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat, 2011-02-05 at 21:56 -0600, Trent Gamblin wrote:
> That was just coincidence. I tried with some other numbers and the
> results are basically random as far as I can tell.
Ok, not totally random. Here's the output if I clear the bitmap to
increasing values from 0 to 255 in steps of 8:
0.000000 0.000000 0.000000 0.000000
0.062745 0.062745 0.031373 0.000000
0.125490 0.125490 0.062745 0.000000
0.192157 0.192157 0.094118 0.000000
0.254902 0.254902 0.125490 0.000000
0.321569 0.321569 0.160784 0.000000
0.384314 0.384314 0.192157 0.000000
0.450980 0.450980 0.223529 0.000000
0.513726 0.513726 0.254902 0.000000
0.580392 0.580392 0.290196 0.000000
0.643137 0.643137 0.321569 0.000000
0.705882 0.705882 0.352941 0.000000
0.772549 0.772549 0.384314 0.000000
0.835294 0.835294 0.415686 0.000000
0.901961 0.901961 0.450980 0.000000
0.964706 0.964706 0.482353 0.000000
0.031373 0.000000 0.513726 1.000000
0.094118 0.062745 0.545098 1.000000
0.160784 0.125490 0.580392 1.000000
0.223529 0.192157 0.611765 1.000000
0.290196 0.254902 0.643137 1.000000
0.352941 0.321569 0.674510 1.000000
0.415686 0.384314 0.705882 1.000000
0.482353 0.450980 0.741176 1.000000
0.545098 0.513726 0.772549 1.000000
0.611765 0.580392 0.803922 1.000000
0.674510 0.643137 0.835294 1.000000
0.741176 0.705882 0.870588 1.000000
0.803922 0.772549 0.901961 1.000000
0.870588 0.835294 0.933333 1.000000
0.933333 0.901961 0.964706 1.000000
1.000000 0.964706 1.000000 1.000000
The red and green values cycle twice, though they're slightly different.
It's as if they're only using 4 bits each.