save Graphics buffer and reuse #7625
Unanswered
espruino-discuss
asked this question in
Other Board General Questions
Replies: 1 comment
-
Posted at 2020-10-02 by Abhigkar I found answer here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2020-10-02 by Abhigkar
I want to preserve the content of Graphics buffer and reuse it later. But when I store in a new Uint8Array it and call graphics.clear(), it clears the saved variable also. See below example.
I am saving g.buffer in fb variable and after calling g.clear(), it clears fb also.
How to resolve this?
Beta Was this translation helpful? Give feedback.
All reactions