Created
July 8, 2021 20:53
-
-
Save starakaj/ce63c2e4becb8c3dfae03ed3f9d7f1f1 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
function style1() { | |
mgraphics.set_source_rgba(1, 0, 0, 1); | |
} | |
function paint() { | |
mgraphics.save(); | |
style1(); | |
mgraphics.rectangle(0, 0, 100, 100); | |
mgraphics.fill(); | |
mgraphics.restore(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment