Fixed bug in toRGB
Merge pull request #1 from Ticketpark/fix-rgb

Fixed bug in toRGB