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

FEATURE: Rotate selection #39

Open
unsettledgames opened this issue Jun 25, 2021 · 1 comment
Open

FEATURE: Rotate selection #39

unsettledgames opened this issue Jun 25, 2021 · 1 comment

Comments

@unsettledgames
Copy link
Collaborator

No description provided.

@lospec lospec closed this as completed in 8433b60 Dec 26, 2021
@skeddles skeddles reopened this Dec 26, 2021
@unsettledgames
Copy link
Collaborator Author

(credit Jaman on Discord)

  1. Draw the selection to a headless canvas (rotated)
  2. Get the image data: headlessCtx.getImageData(...selectionRect)
  3. Trim or replace semi-transparent pixels in the image data ( replacing them with a 'similar' color from their palette would be awesome 😄, could be a checkbox option)
  4. Draw it

@unsettledgames unsettledgames pinned this issue Feb 2, 2022
@unsettledgames unsettledgames unpinned this issue Dec 27, 2022
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

No branches or pull requests

2 participants