« Foamcore is Fun | Main | Evolution in Persistent Worlds »
Sep
25
SimpleParticleSystem and FlickrSlideshow
First challenge: Modify the particle effect example from Daniel Shiffman to have the particle effect emit under the mouse pointer.
Not much action here, just make the particle system's origin take in the mouseX, mouseY coordinates whenever the mouse is moved. (or every time draw is called. whatever. :x ) Changed colors to blue for kicks, cause blue is purdier than gray.
Requires Processing: SimpleParticleSystem.zip
Second challenge: Using Processing, create a Flickr photo slide show applet. The applet should retrieve a photo from the "public" Flickr photo stream and display it within the Processing applet. So, it's like your own desktop slide show widget. Want extra credit? Make the slide show transition use alpha blending so that the photos fade out and then fade in.
- Find a way to access Flickr
- Found a URL on Flickr that produced new random images with every refresh. Perfect.
- Used Processing library proHTML to get the contents of the URL and extract all the images from it (very useful).
- Singled out URLs that started with farm2.static.whatever, so that we're not displaying the Flickr logo or something irrelevant.
- Display the images in slideshow effect
- Surprisingly, this ended up being more difficult than the Flickr pulling. -_- Largely because I don't know how tint() works, even now, after a great deal of experimentation. It works, but the transitions are occurring much faster than I would like. Bleh.
Requires Processing: FlickrSlideshow.zip

