I'm currently working on an application using processing. I have built a custom UI but it has just one major flaw.
As there can be a lot of graphics on screen at any one time, it doesn't make much sense to continuously redraw the complete screen for every frame when the mouse is pressed on the resize button for a form panel.
My next step was to take a snap shot of any graphic heavy sections of the screen on every mouseReleased event and then display these instead while resizing a panel. This causes further issues as it may take up to a second to process the screenshot and can cause lags in other areas of the application.
Anybody have any experience in doing something like this or can think of any elegant solutions?
I want to be able to open my sketch automatically for a certain file-type (say ".ttt") in the same way that if you double click a ".doc" file you will (probably) open Word.
Is there any way I can set my sketch to take in a filename as an argument when it loads?