Loading...
Logo
Processing Forum

I hacked this together rather roughly by ripping some code out of an old sketch on Recursively drawing arc segments by gneumatic and then turning it into a class.

But I'm sure there's a more elegant way to generate a shape like this with the same controllable elements.

It bothers me that there's this huge confection (it really is a cake!) of colors underneath it all, being masked by a fat black blob sitting in the middle of the screen - instead of a slim ring of multi-colored arcs.

Any ideas?

PS This is just one piece of a larger work which will be controlled by two handheld devices - one running a TUIO multitouch screen and the other transmitting x,y,z accelerometer data via OSC - to constantly vary the hue, saturation and brightness values of the different-colored segments on this ring.

It had occurred to me that it might be better to create concentric circles of different colors to achieve a slightly different but equally viable effect.    

Please note: because of compatibility issues involving the numerous pieces of this jigsaw I have to use Processing V1.5 for all this.

PIC

Replies(2)

Wow, seems a bit overkill indeed.

I wrote a blog post about arcs a long time ago which contains a code example.

Here: http://amnonp5.wordpress.com/2010/05/08/the-beauty-of-arcs/

The key is using strokeWeight().

Thank you - just what I was looking for. Much cleaner!