This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So apologies that I’m new to Canvas and my code is probably terrible but here’s my repo:
https://github.com/AlexJMartinez/canvas-template
If you check out the code you’ll see I have a download button that should allow me to download whatever I’ve generated in the Canvas element. That functionality works except the export only shows the first draw() that happens, I have a click event so that anytime you click within the canvas element something gets drawn so I want to be exporting the current contents or state of the canvas element not just the first draw() that happens.
I feel like either I need to set up state so that I can then export the current state or need to be using the save() and restore() functions properly but yea I’m stuck so if anyone can shed some light that be amazing.
Thanks!
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/processing/...