Hey all,
I’m trying to render a rectangle where I place its center in data units but then can choose its height and width in screen units.
As far as I can tell, this is similar to but different from:
-
scatter
ing squares, as I can’t control the height and width separately -
rect
, as though this takes positions in data units and can take width/heights in screen units, the position always demarcates the top/bottom left and I need it to demarcate the center. If I could make the position a combination of a data unit position plus a screen unit offset, this would work, but I don’t see that option. -
quad
which seems to only be measured in data units -
patch
which seems to only be measured in data units
Is what I want possible?