op. 120

Another track. Stealing a theme from Debussy.

op. 117

I've been mostly working on music lately, here's my latest track:

I'm a student of the drums. But I'm a teacher too.

Circle Split Update + Source

I've played around with Circle Split some more. Now you can add an image url parameter to the swf. This will make the swf use that image as the source of the colors, rather than random ones. The best thing to do is to see it in action:

HERE!

Any arbitrary image URL can be used, but only sites that have a permissive crossdomain.xml will work. Flickr and Imgur work, so upload your pics there!

I've also uploaded the source. The files you need are here:

The code is pretty self explanatory and well commented, but shoot me any questions you may have. To get this up and running, put these class files in a directory named "ae" in your as3 classpath. Use CircleSplit as the document class. I just created an empty FLA, 1024x1024, 30 fps, and a black background. This code is public domain, so feel free to use and modify!

Circle Split

After seeing this flash doohickey and playing with it for a while, I noticed that it slows to a crawl and becomes unresponsive simply due to the sheer complexity of it all. I immediately saw some ways to optimize what it is doing, as it uses a rather simple approach as to what it's doing.

After a couple hours of hacking, I came up with this:

http://www.aeflash.com/misc/circlesplit2.swf

Graphics were cached to a single bitmap, and lighter-weight sprites were used instead of buttons. It still was a bit slow once you got deep into it. This was simply due to the thousands of mouse event listeners flash player had to keep track of. AFter a few more hours I have this:

http://www.aeflash.com/misc/circlesplit.swf

It uses a tree structure and a divide-and-conquer algorithm to delegate mouse events to the correct circle. Instead of having a O(n) search every mouse move, it now has a O(log(n)) search. It's very responsive, even with thousands of circles. I'll post the source later.

Have fun playing. And yes, it is possible to win...

Noise Cube

Check out the newly christened "Gallery" page on the right -- I have some images of a small graphics experiment. "Noise Cube" is a cube filled with randomly generated triangles or tetrahedrons. Theoretically, as you add more tetrahedrons, the space will become filled and more cube-like. It was written in python using opengl and pygtkglext. I'll post the source soon.


 1 2 3 … 9 Next →

User