Forums > Jitter

Generating Rainbow Colours

September 23, 2013 | 3:46 am

I’m starting to generate patterns for the 32×16 Led Wall I’ve built. I’ll probably feed it via syphon but that’s another story.

I’m looking at how to generate patterns and have written this patch to create a kind of rainbow effect.

Do I have to create 3 separate matrices to operate on them and pack them together or is there another way? I couldn’t work out how jit.op with multiple operators worked. Or perhaps I could use jit.gradient with charmap?

I’m just learning this stuff so any tips on alternative approaches would be interesting. Thanks!

<code>

– Pasted Max Patch, click to expand. –

</code>


September 23, 2013 | 6:07 am

Gav :)

<code>

– Pasted Max Patch, click to expand. –

</code>


September 23, 2013 | 6:30 am

Ah yes commas! Thanks.

A simple edit and we have a bit of Acid Gingham! (http://en.wikipedia.org/wiki/Gingham)

<code>

– Pasted Max Patch, click to expand. –

</code>


Viewing 3 posts - 1 through 3 (of 3 total)