Convert Hex to ACI color #609
Unanswered
Lukideluki
asked this question in
Q&A
Replies: 1 comment
-
You can do a reverse search, but if your RGB value is not exact a default ACI color, it's getting complicated. Some key words: perceived color, luminance, color spaces ... A possible solution is shown here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am looking a way to convert hex colors back to the ACI color.
I used the follow code to convert ACI into Hex:
aci = entity.dxf.color rgb24 = colors.DXF_DEFAULT_COLORS[aci] color= f"#{rgb24:06X}"
now i am tring to do the reverse but didnt found the way.
Beta Was this translation helpful? Give feedback.
All reactions