Possible values of colorspace returned by get_texttrace() #2514
Answered
by
JorjMcKie
little-polka-dot
asked this question in
Q&A
-
How many possible values can the colorspace parameter have when returned by the get_texttrace function, besides 1 for GRAY and 3 for RGB? |
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Jul 5, 2023
Replies: 1 comment 4 replies
-
Is the fill and color returned by get_drawings always in RGB format? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the documentation, you will see an example for GRAY. This only happens if the text does not provide a colorspace at all.
RGB (which is the normal case) is given as usual as a tuple of 3 floats in range 0 <= f <= 1. So you will not see any surprise here, do you.
The only thing I am regretting at the design of this function is, that I did not convert color to the sRGB format.