https://gist.github.com/gerchicov/6989283 As I understand this code means a transparent figure, but it is filled with black color I see that your string_hex_color_to_uint can't implement this value and simply returns 0.