这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@speednoisemovement
Copy link

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

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
hapticdata added a commit that referenced this pull request May 21, 2011
@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants