|
Author |
Topic: Sparks/blur (Read 2431 times) |
|
JohnG
|
Sparks/blur
« on: Feb 23rd, 2005, 12:40am » |
|
Another quickly thrown together sketch form an idea I had. http://www.hardcorepawn.com/sparks/ Wave the mouse over the applet, and watch the sparks fly. Keys 'a' and 'z' increase and decrease the lifetime/max number of sparks. I borrowed the blur code that toxi used in his base64 applet (hope you don't mind) which was originally writtend by SEB (I believe). I managed to optimise it slightly, since this applet is mostly black, by getting the blur code to only work out new pixel values if one of the neighouring pixels isn't black. for this applet, that means up to 35% speed increase on the computer I tested it on. (Lower values, the more of the screen that's not black)
|
|
|
|
seltar
|
Re: Sparks/blur
« Reply #1 on: Mar 6th, 2005, 4:56pm » |
|
Really cool, liked it alot -seltar
|
« Last Edit: Mar 6th, 2005, 4:56pm by seltar » |
|
|
|
|
|