Created
July 8, 2021 20:57
-
-
Save starakaj/a84cb525fcc4bb7c1a3fc49a988c8555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const makeRectDrawStatements = template(` | |
mgraphics.rectangle(%%x%% * aspect, %%y%%, %%w%% * aspect, %%h%%); | |
mgraphics.fill(); | |
`); | |
const makeStyledRectDrawStatements = template(` | |
mgraphics.save(); | |
%%styleFunctionName%%(); | |
mgraphics.rectangle(%%x%% * aspect, %%y%%, %%w%% * aspect, %%h%%); | |
mgraphics.fill(); | |
mgraphics.restore(); | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment