I'm trying to make a reader/writer that records what is drawn in one program and plays it back in the next. No problem, except I can't figure out how to pause the output to text file when the mouse is not being pressed. This causes really ugly jumps in the drawing on playback. What piece of the puzzle am I missing here?
void mouseDragged(){
output.println(mouseX + "$" + mouseY); // Write the coordinate to the file
Just for fun-- I'm trying to figure out how to update a PImage from an external class. The class is working ( I can trace it and see outlines briefly of what it is changing) , but it's not showing up on the main window. Can someone give me a hand?
Abbreviated code:
void setup(){
size(600,800);
myImg=loadImage("starter.jpg");
}
void draw(){
image(myImg,0,0,width,height);
}
void keyPressed(){
if (key=='s'){
stutter= new Stutter(myImg,width,height,6);
//tried both of these since updated image is not reloading over original
For some reason , when I export my program as an application in full screen, it gives me a "ghost" or second rectangle in the upper left. I'm stumped. I've screen capped the left side of the full screen.