So i was bored and remembered that i've never programmed a cellular automata (As they're apparently called) so i made one. I am happy with how short and fast (on my computer, running it fullscreen - 1920*1080) i managed to make the program so i thought i'd post it:
Good day,
This is a 3d image wall sketch that i created. it uses the flickr api to get the last 100 added images and displays them.
I can't really think of that much to say about this project... basically i wanted to see how it was like to work with xml files in processing so i made this. I know these aren't anything new but i haven't seen one i processing so i thought i'd post it, also i haven seen many exhibition posts lately...
Copy-paste the code to try it :)
Controlls: use the mouse to move and the scroll to zoom
//Processing Image Wall
//By Gustav Bjordal
import processing.opengl.*;
class Photo{
PImage img;
float x;
float y;
float z;
float smallWidth;
float smallHeight;
float currentWidth;
float currentHeight;
int id;
boolean loading;
public Photo(String url,float nx,float ny,int _id){
size(1920,800,OPENGL); //sorry about the size, feel free to change it to something that fits your screen
buffert = createGraphics(width,height,P3D);
photos = new ArrayList();
xml = new XMLElement(this, "http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=99835d77b01b776f3115b56180c6c4f4&per_page="+NUMOFIMAGES);
Seeing how reas thinks the exhibition section is a good place to post and discuss code snippets, i'll just go ahead and post this. But first i just want to clarify why i am posting this. So i created this mouse trail/Paint effect some days ago and i think it looks really cool but i really have no use for it. So i am posting it here because someone else might be able to use it for something or get some new ideas from it. I am also hoping that someone would be able to improve on it a post the results here and by doing that maybe creating what could be an interesting discussion on mouse trail effects. :)
Here's some images just to show how it looks and what you can do with it:
I actually made this program so that i could be the first person to post in the exhibition part of the forum but i guess i were too slow. :(
But i still like the final images and i did in fact put some time into tweaking this and i have had this idea in my head all day so i was probably gonna post it anyways (maybe).
So here it is (right click on the images and select "View Image")