kbran420 / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

[Chapter 3] RGB565 color components #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the printed version of the book, in the sub-section "Encoding Colors 
Digitally", chapter 3, page 86, figure 3-23 shows strange color component 
values for the 16-bit representation of the float (1.0, 0.5, 0.75).

Maybe I miss something, but the Blue component, which it's memorized in 5 bits, 
cannot exceed the value 31. And in this particular case, it should be something 
like 24, since the real value is 0.75. 

Instead, the 16-bit color is represented by the triplet (31, 31, 45). 

--- Alessandro Dal Bello ---

Original issue reported on code.google.com by alessand...@gmail.com on 15 Aug 2011 at 4:10

GoogleCodeExporter commented 9 years ago
That seems to be a typo. Thanks for catching that!

Original comment by badlogicgames on 24 Aug 2011 at 4:12

GoogleCodeExporter commented 9 years ago
Thanks, fixed in second edition!

Original comment by badlogicgames on 27 Aug 2011 at 11:51