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

Improvements of example #6

Open
AGulev opened this issue Sep 10, 2018 · 0 comments
Open

Improvements of example #6

AGulev opened this issue Sep 10, 2018 · 0 comments

Comments

@AGulev
Copy link
Owner

AGulev commented Sep 10, 2018

Would be great to improve example by adding one more layer for interactive elements like line and bezier.
When user move cursor we redraw this interactive elements on this extra layer, and put them to the main layer when user release cursor.
Of course we can use fill() for clearning "extra texture", but would be greate to save previous drawing (coordinates) every frame and before drawing new line, redraw old one with alpha (smaller fillrate and better performans than using fill() method)

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

1 participant