Tag Archive > Java

Circle Intersection

Ricki » 09 August 2009 » In Processing » No Comments

“What is the point”

was my first thought on this.
I had to do some calculations on the intersections between circles, that was pretty straight forward and I got a class written up in Processing that could do just that.
Then I started playing around and ended up moving 10 circles around the screen using Perlin noise and if any of them intersects, I draw a dot. Pointless? certainly!

Maybe there is someone out there with an idea on how to make this into something other that a cpu hogging math feast. I would love to hear from You:)

Well there is some Perlin movement, some ArrayList looping and of course that class that takes 2 circles and returns their intersection, maybe someone can use that for something useful.
A short run, maybe it get's better?

Example and code here:

Continue reading...

Tags: , , , , , , ,

Processing Tentacles

Ricki » 08 August 2009 » In Particle, Processing » No Comments

I just did a quick port to processing, important to notice that these classes are “as is”, but still, the speed of Java compared to Flash is… well lets just say the gap isn’t quite gone yet ;)

EDIT: forgot some int/float math that made the tentacles look bulky… better now.
Example and code here:

Continue reading...

Tags: , , , ,