choreographic programming approaches?

Hi - I do a lot of art projects using LEDs - sometimes in grids but more often in linear shapes described by the LEDs (intersecting circles, crosses, etc.). I always struggle with what I guess could be called the 'choreography' of programming these pieces: setting up the sequences and timing of movements (i.e. triggering the LEDs in particular animation sequences and patterns, interaction between these virtual 'shapes' and so on).

Most of my stuff has some generative and/or random aspect - I set up rules, etc. and the sequences never repeat but have some structure or development over time.

I know how to use objects/classes, and programming elements like state machines, LUTs, etc. but I am wondering how to go about setting up a programming structure/system that I can build on.

Very general question, I realize but maybe someone has suggestions or examples I might look at to get some ideas on how to approach coding such an animation system.


The problem here is that you want a lot of patterns without having to define every single one. One approach is to use the animators method of key frames and tweening. That is generating intermediate frames from key ones. If you define each point in the before and after frames as a co-ornate then the tween frames are simply a vector progression from one to another. Points appearing or disappearing between frames can be treated as off screen points. Hope that helps.