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

push-pop translate gebruiken #1

Open
SimonVanherweghe opened this issue Oct 3, 2023 · 0 comments
Open

push-pop translate gebruiken #1

SimonVanherweghe opened this issue Oct 3, 2023 · 0 comments

Comments

@SimonVanherweghe
Copy link
Contributor

@vaernewijck kwestie van consistent te zijn, we zouden dat toch beter met push/pop doen?

if (tile === 0) {
// Version 1
arc(xPos, yPos, tileSize, tileSize, 0, HALF_PI);
arc(xPos + tileSize, yPos + tileSize, tileSize, tileSize, PI, PI + HALF_PI);
} else if (tile === 1) {
// Version 2
arc(xPos, yPos + tileSize, tileSize, tileSize, PI + HALF_PI, 0);
arc(xPos + tileSize, yPos, tileSize, tileSize, HALF_PI, PI);
}
}

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