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

added scale_up and scale_down function to Actor to resize images #191

Closed

Conversation

ZhangEPSB
Copy link

I've added functions for resizing an image loaded into an Actor so that users can change the size of the sprite easier.

@aoloe
Copy link

aoloe commented Jul 8, 2019

let's hope for the best... : - )

@lordmauve
Copy link
Owner

Sorry, this is not at all close to what is needed for this. #92 is very close but has some issues with positioning that I think are not fixed.

The way that scaling needs to work is:

  • scales about the anchor point without moving the actor
  • updates width/height
  • slots into the transform stack (after opacity, before rotation) so that operations compose correctly

@lordmauve lordmauve closed this Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants