-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change rendering start position #1247
Comments
You can do this by transforming the coordinate system. See https://docs.rs/piston2d-graphics/0.26.0/graphics/trait.Transformed.html Are you thinking about an easier way to do this? |
@bvssni do I need to implement it myself for window? Or how do I use it? |
|
@bvssvni wouldn't that mean I need to use this function for every object I am going to draw? |
No, you just use |
when using trans() is feels like the direction is inverted - the objects move up if its < 0 and down if its > 0 - is that so? |
The y-axis is down by default. This is common in 2D graphical systems. You can change this too, using |
I know that the y-axis goes down in 2D but if I increase y then y goes down should then the object not be renderer like cut off at the top and not move down? And only move down if decrease y? |
This depends on whether you scale before or after. |
I didnt use scaling. |
I think it would be senseful to allow setting the coordinate from where the renderer start drawing to the window. This could be useful in bigger scenes.
The text was updated successfully, but these errors were encountered: