Jump to content

Do a color picker when a rotating sprite change dinamicaly stage dimensions [RESOLVED]


Recommended Posts

Hello, i'm trying to do a color picker with pixijs v6.2.0

It's work almost, but i have a problem when i have a rotating sprite on the ledge of the stage, because that change dinamicaly the width and height stage, but don't change the x and y position of others sprites in the stage.

Exemple 1: The mouse down event is set on the stage
If you comment the line 53 (for the sprite rotation) in the javascipt tab, that will work.

Exemple 2: The mouse down event is set on a sprite, and the readpixels too, to avoid to have not fixe dimensions, but that does not work too, but i don't know why

You can click to see in console the resulting: x y, width height, rgba

Thank you for reading and helping :)

Edited by Marodheure
improve code in exemple
Link to comment
Share on other sites

  • Marodheure changed the title to Do a color picker when a rotating sprite change dinamicaly stage dimensions [RESOLVED]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...