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

Draw placed pieces in separate graphics for performance #4

Open
Stephcraft opened this issue Nov 8, 2021 · 0 comments
Open

Draw placed pieces in separate graphics for performance #4

Stephcraft opened this issue Nov 8, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Stephcraft
Copy link
Owner

The gray board where you place pieces stays the same and could therefore be drawn once at the beginning in a p5.Graphics and then displayed with image() instead of doing the rendering every frame for no change. The preview feature does change the transparency of the board though.

Two options:

  • Draw dynamically the board during preview for the transparency effect
  • Find an alternative to the slow tint() method
@Stephcraft Stephcraft added the good first issue Good for newcomers label Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant