Skip to content

Conversation

ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Mar 24, 2023

Objective

Add helper functions to UiImage for creating flipped images.

Changelog

  • Added with_flip_x and with_flip_y methods to UiImage that return the UiImage flipped along the respective axis.

* Added `with_flip_x` and `with_flip_y` methods to `UiImage` that flip the image in the respective axis.
@ickshonpe ickshonpe changed the title UiImage helper methods UiImage helper functions Mar 24, 2023
@cart
Copy link
Member

cart commented Apr 5, 2023

Generally hesitant to add builders / encourage their use over struct init syntax. But in this case I think its reasonable.

@cart cart enabled auto-merge April 5, 2023 21:45
@cart cart added this pull request to the merge queue Apr 5, 2023
Merged via the queue into bevyengine:main with commit ff9f223 Apr 5, 2023
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.

2 participants