ThinkGeo.com    |     Documentation    |     Premium Support

Bug(s) in GeoColor.FromAhsl

The doc for GeoColor.Ahsl says is takes int, float, float, float. up to 255, 360, 100, 100 respectively.


But, e.g.  .FromAhsl(255, 355, 100, 10)

blows up with an exception 'too big for byte' type error.


Plus: Tying lots of permutations with L of 1, I always get R G and B of 255



GeoColor



Fergus, 
  
   I  will have to check on this.  I did notice form the code that no matter what alpha you pass in you always get 255, it’s hard coded.  That is a bug for sure.  As for the L of 1 I think the luminosity of one mean its basically black so that could account for the all 255 values.  As I said i will have to check with our graphics guy to see what this is all about.  I know little about HSL.  I will also check on the error for the byte issue.  I am sure it is come problem on our side. 
  
 David