Commit Graph

5 Commits (f3c25ac72941fd6c0c6024f0a6212ac804499fa0)

Author SHA1 Message Date
Rogier 493c5842a1 Fix conversion of libgd alpha value: libgd uses 0..127 (not 255) 2014-05-22 10:41:12 +02:00
Rogier 5c73495d7b Initialize color to 0,0,0,0 by default (instead of 0,255,255,255) 2014-05-22 10:41:11 +02:00
Rogier 5e4ee45575 Move color string parsing to constructor of class Color & add a constructor using an integer
Added formats for Color constructor:
- plain interger (2^24 * alpha + 2^16 * red + 2^8 * green + blue)
- Color string consisting of:
  - '#'
  - 3, 4, 6 or 8 hex digits
2014-05-12 09:26:17 +02:00
Rogier ce94029c95 Merge PixelCacheEntry into PixelAttributes 2014-04-14 01:29:58 +02:00
Rogier 7dc3b48a7c Move color structs & functions to own header
To prepare for the map zoom level support
2014-04-10 19:53:35 +02:00