Picture
Picture
mooninite.app.zip
File Size: 351 kb
File Type: zip
Download File

Super simple little app I made to play a prank on a co-worker, took all of about 10 minutes to make...if that, it's only 18 lines of code, works only on a mac. Enjoy.

If you don't know what a mooninite is... http://en.wikipedia.org/wiki/2007_Boston_bomb_scare

Press Esc to exit.

Source Code in Processing:

import com.sun.awt.AWTUtilities;
PImage mooninite;
void setup(){
  size(screen.width, screen.height);
  frame.removeNotify();
  frame.setUndecorated(true);
  AWTUtilities.setWindowOpaque(frame, false);
  mooninite = loadImage("mooninite.png");
  imageMode(CENTER);
}
void update(){
}
void draw(){
  loadPixels();
  for ( int i = 0 ; i < pixels.length ; i++ ) pixels[i] = 0;
  updatePixels();
  image(mooninite, mouseX, mouseY, 50,50);
}
 


Comments

03/08/2011 19:32

Nice app, i didn't know some functions that you use, but i run it in mac and there is a gray window behind the images, i'll try to run the code direct in processing ;)

Reply
03/08/2011 21:43

Just realized that I only tested it on one machine. I'm sorry if it doesn't work for everybody.

Reply
shumizu
03/24/2011 03:02

Hey! If i wanna run the code it says that the com.sun.awt package is missing... where can i get this library... i was looking for this since a long time... but still didnt figuret it out :(

Reply

Your comment will be posted after it is approved.


Leave a Reply