Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor