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

add templates to hide push and pop for more idiomatic nim #15

Open
pietroppeter opened this issue Jan 26, 2023 · 0 comments
Open

add templates to hide push and pop for more idiomatic nim #15

pietroppeter opened this issue Jan 26, 2023 · 0 comments

Comments

@pietroppeter
Copy link
Owner

in p5js there is push and pop used for e.g. transforming coordinates or in general a temporary "mode" change.
in nim it would be more idiomatic to define templates for common stuff, see for example (case of rotate or translate) Hugo advent 22 day 2 and usages below

probably a generic pushPop (or in other way named) template could be added too

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