if i have an expression like: if (dontTint== 2 ) noTint();
i have an array of image that fade out. how can you make multiple numbers to ==. so that i can have the image 2, 6,7,10 noTint.
I'm trying to find the best way to fade an image over time. So far I have played around with tint and mills but I have not been able to make it work properly the images just tent to flash.
i have a small ellipse which bounces around in the space and a large ellipse in the center that does not move. how do i make the little ellipse bounce off the big ellipse when it hits it?
Idea ideas;
int size = 60; // Width of the shape
float xpos, ypos; // Starting position of shape
float xspeed = 2.8; // Speed of the shape
float yspeed = 2.2; // Speed of the shape
int xdirection = 1; // Left or Right
int ydirection = 1; // Top to Bottom
so i have an array of image and a class and cant work out how to make the images work so that when a new image is create it is the next image in the string at the moment it only create image 1 over and over.
Idea [] ideas=new Idea[15];
String[] files = {"arch.jpg","arch1.jpg","arch2.jpg","arch3.jpg"};
PImage[] images = new PImage[files.length];
int more=1;
i'm fairly new to processing and i really need to be able to create these four images from the string in my class Idea. but is there a way to make it so that the images will appear only once the mouse is clicked? at the moment i can only get them to be all created at the same time.