-
Hi , I'd like to consult the TTRRGGBB format of color convert in ColorDef.ts. When I set color number to 0x000000FF, it displayed RED color instead of BLUE color. It can produced by color number 0x00FF0000. In the line 224([https://github.com/imodeljs/imodeljs/blob/master/core/common/src/ColorDef.ts]), the blue and red return value should be switched. |
Beta Was this translation helpful? Give feedback.
Answered by
kabentley
Mar 31, 2021
Replies: 1 comment 3 replies
-
Please see this discussion about the format ColorDef uses. ColorDef stores as 0xTTBBGGRR, which is different than the color format used in HTML. Color 0xff is red in ColorDef format. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
kabentley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see this discussion about the format ColorDef uses. ColorDef stores as 0xTTBBGGRR, which is different than the color format used in HTML. Color 0xff is red in ColorDef format.