Function like setTextDatum that works on shapes? #1280
Unanswered
davorvr
asked this question in
New processor/display support or capability request
Replies: 0 comments
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.
-
Would it be possible to add a function that defines in which direction functions like
drawRect()
draw? From what I gather, these functions always have the specifiedx
andy
coordinates be the top left corner of the shape. For example, to draw a rectangle in the top right corner (where(MAX_X, 0)
are the coordinates of the TR corner), I'd like to be able to do something like this:This would position the top right corner of the rectangle to
(MAX_X, 0)
and draw to the left and down. This doesn't have many benefits and adds an extra line of code, except in cases where it is desirable to draw relative to some screen corner (a similar use case as text datums), where it might be easier to code this way and perhaps beneficial for code readability. This is, in my opinion, very low priority as it's merely a convenience when coding with the library, and not exactly added functionality.Beta Was this translation helpful? Give feedback.
All reactions