After seeing the post about the public canvas over at https://www.lexaloffle.com/bbs/?tid=146418 I got curious about whether it would be possible to make a canvas viewer on Picotron.
After a bit of poking around, I found that you can get a png of the current state of a portion of the canvas with a web link like so: https://everyonedraw.com/api/og-image.png?x=655330&y=655330&zoom=1
This seems to me like an ideal (and possibly the only) way to read it.
I tried using pancelor's png import library for some quick tests but something seems to be wrong with the png when fetched with that link and I couldn't actually convert it to userdata. Another issue is that the png automatically scales to around 1100x1100 as far as I can tell.
I'd be curious to hear ideas for making this work. Not sure if I'll keep working on it but I wanted to post what I found in case anyone more experienced wanted to give it a shot.
This cart has code that reproduces the issue I had:
[Please log in to post a comment]