Just wondering if someone could help me (still extremely new to processing)
Ive created a sketch and im just trying to create a reset, so the user can press the space bar and everything will reset to normal.
Ive currently created a scene where on mouseclick the image changes to something else. After that though i want the user to be able to keyPress to get back to the beginning and start again.
Ive been looking through all the other posts and your responses trying to figure out what to do. Ive tried to create a "reset_sketch" but i cant work out what to declare for the code to work.
anyways so far this is what ive got.
int[] starX = new int[1000];
int[] starY = new int[1000];
color[] starColor = new color[1000];
int starSize = 3;
int[] shootX = new int[30];
int[] shootY = new int[30];
int METEOR_SIZE = 10;
float meteorSize = METEOR_SIZE;
float ssDeltaX, ssDeltaY;
int ssTimer = -1;
int startX, startY;
PImage landscape;
PImage image2;
PImage image1;
boolean mouseHasBeenPressed = false;
float easing = 0.05; float offset = 0;
void reset_sketch(){ //no idea what to put in here????
I have two similar shaped SVG files and I want to tween the first SVG into the second SVG when the mouse is clicked (so the first shape will morph into the second shape) Would anyone happen to have an example code for this or know how to structure the code?