Let’s say I want my measurements to be in CM, so I created a Window where the units is in “cm”, for example:
If I need a Rectangle of size 1cm by 1cm, I assume that creating a Rect where width and height are 1.0 will give me that desired Rectangle, for example:
visual.Rect(..., width=1.0, height=1.0)
But the Rectangle I got on the screen during runtime isn’t 1 by 1 cm.
Likewise for Circles, if I need a Circle where the radius is 1cm, I do this:
But, similar to the Rectangle, I didn’t manage to a perfect 1cm radius (2cm in diameter).
What I am missing here?
Likewise, I would like to know how to ensure that the positions is where I want the object to be located, for example if I want a Rectangle to be placed at 1cm on the X and 2cm on the Y, from the point of origin, I do this:
rect = visual.Rect(...) rect.pos = (1.0,2.0)
Is that right? Which part of the Rectangle is right at the [1,2] point? The center?