You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you blit a 10x10 square onto 0,0, it will cover the span of (0 to 10, 0 to 10).
If you blit that square with a zoom of 2, if will cover the span of (-10 to 10, 0 to 20).
There is no way of blitting an image to a specific xy dimensions unless you know the exact dimensions, in units of the size/scale of image you are blitting, and without performing extra manipulative x math to get it in the right position.
The ideal behavior here would be the x,y position you define in the function parameter is always the top-left corner - OR, an additional blt() definition where you can specify the exact dimensions, which afaik is how it is rendered behind the scenes anyway.
The text was updated successfully, but these errors were encountered:
This is difficult to explain so bear with me -
If you blit a 10x10 square onto 0,0, it will cover the span of (0 to 10, 0 to 10).
If you blit that square with a zoom of 2, if will cover the span of (-10 to 10, 0 to 20).
There is no way of blitting an image to a specific xy dimensions unless you know the exact dimensions, in units of the size/scale of image you are blitting, and without performing extra manipulative x math to get it in the right position.
The ideal behavior here would be the x,y position you define in the function parameter is always the top-left corner - OR, an additional blt() definition where you can specify the exact dimensions, which afaik is how it is rendered behind the scenes anyway.
The text was updated successfully, but these errors were encountered: