Is there any way to redraw an image that constantly changes?
See original GitHub issueI’ve tried ColourImageFile but that for some reason only renders it once then doesnt render it ever again, it would probably destroy my CPU if it did so but its a risk im willing to take, is there any way to constantly re render this image and pass it onto a Print effect? Sorry if this isnt the right place to ask questions but I really have no idea where to post this
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Does Canvas redraw itself every time anything changes?
This concept of redrawing on translation is fairly self-evident, as the canvas has no method of deleting from the present context.
Read more >draw() / Reference / Processing.org
To stop the code inside of draw() from running continuously, use noLoop(), redraw() and loop(). If noLoop() is used to stop the code...
Read more >Pixelmator Pro
Make small imperfections or even entire objects disappear from your images by painting over them with the Repair Tool. No matter how complex...
Read more >How to: Use a Drawing Tool | Microsoft Learn
Use the Image Editor toolbar or go to menu Image > Tools and select a Closed-Figure Drawing tool. · If necessary, select colors...
Read more >Tools - ImageJ
Use Edit>Draw to permanently draw the line on the image. Change the drawing color by clicking in the Image>Colors>Color Picker window. Double click...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi. For general questions, you can always use the asciimatics lobby on gitter.
I’m not sure what you’re asking… ColourImageFile will pull out all the images from an animated image and display them at the desired rate (that you specify as the speed in the Print Effect).
Do you mean that some other application is constantly writing a new (single) image to the file and so you want to be able to read that every time the file changes? If so, you will have to create a new ColourImageFile object each time the file changes. You could do that using a separate thread to monitor the file and build the object as needed. Finally you’d also need to update the Scene in some way to pick up the new object… Easiest way to do that would be to remove the old Print Effect and add a new one for the new image instead.
Oh yeah, that did work, sorry for not closing the issue myself! Here’s the code if anyone needs an example: