p5nim icon indicating copy to clipboard operation
p5nim copied to clipboard

add templates to hide push and pop for more idiomatic nim

Open pietroppeter opened this issue 2 years ago β€’ 0 comments

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

pietroppeter avatar Jan 26 '23 05:01 pietroppeter