Fixed bug where RGB(A) colours only used R value.
Fixed bug where output hex color values didn't have proper length.
Fixed last commit to be correct in all cases.
Merge pull request #3 from Cybolic/master

Fix for color output zero-padding and rgb(a) output only using R value.