Skip to content
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

Three-arguments pos for Images (resizing by context) #81

Open
Toma400 opened this issue Jun 23, 2023 · 0 comments
Open

Three-arguments pos for Images (resizing by context) #81

Toma400 opened this issue Jun 23, 2023 · 0 comments
Labels
code improvement Call for some improvement of code feature suggestion Feature suggestion, not approved by any means

Comments

@Toma400
Copy link
Owner

Toma400 commented Jun 23, 2023

There's that Image class in gh_manag: here and by default it takes two or four arguments in a tuple - four will adjust image to specific rectangle, while two will simply put the image somewhere.

I'd suggest adding one more, three-arguments driven one: it'd be resizable just like 4-arguments one, but it won't try to squeeze the image into the canva we mentioned, but rather onto one specific X/Y axes. "Fourth" argument would be automatically calculated by game, and it'd be dynamical, to fit the proportions of image.
This way we could determine partially how big the image is, but it will stay true to its original by proportions.

@Toma400 Toma400 added feature suggestion Feature suggestion, not approved by any means code improvement Call for some improvement of code labels Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code improvement Call for some improvement of code feature suggestion Feature suggestion, not approved by any means
Projects
None yet
Development

No branches or pull requests

1 participant