TColor.toHex bugfix #7

Merged
merged 1 commit into from May 21, 2011

2 participants

@speednoisemovement

Because of Javascript's "unusual" number representation and lack of leading zeroes from using toString(16) for hex, some colors were returning incorrect hex, for example:
c = tc.newRGB(0.2, 0.2, 0.3)

toxi.color.TColor
c.toHex()
"cccb4" //should be 33334c

Leonard Tirulnikov Fixed a bug in TColor.toHex, typo in build script
Because of Javascript's "unusual" number representation and lack of leading zeroes from using toString(16) for hex, some colors were returning incorrect hex, for example:
c = tc.newRGB(0.2, 0.2, 0.3)
> toxi.color.TColor
c.toHex()
> "cccb4" //should be 33334c
48d812b
@hapticdata hapticdata merged commit 431b808 into hapticdata:master May 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment