RomanHargrave / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Indexed fromRGB fails #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The static method "Indexed fromRGB(int red, int green, int blue)" in 
class TextColor calculates the index to 274 which is invalid when the 
parameters are (255, 255, 255).

I have not tested other conditions where this may happen.

Original issue reported on code.google.com by magn...@gmail.com on 18 Dec 2014 at 12:11

GoogleCodeExporter commented 9 years ago
Yep, I can reproduce that.

Original comment by mab...@gmail.com on 11 Jan 2015 at 11:10

GoogleCodeExporter commented 9 years ago
Ok, that's fixed and pushed now.

Original comment by mab...@gmail.com on 11 Jan 2015 at 11:16