hoping someone can point me in the right direction here. how do you do the math necessary to display something like this on a led matrix? if it was just a simple string of leds, i could see how to do it, but not for a matrix. im rather confused by this seemingly simple thought that i cant seem to find an answer to

# hoping someone can point me in the right direction here.

**Andrew_Tuline**(Andrew Tuline) #2

Here’s my goto links for this kind of thing:

https://www.bidouille.org/prog/plasma

http://lodev.org/cgtutor/plasma.html

**Leon_Yuhanov**(Leon Yuhanov) #3

1-Create a colour gradient that you can index from 0 to X

2-Draw a circle radius Y(initially 1) % (width of canvas) with colour X%(Colour index range)

3-Increment Radius

4-Increment Colour index X

5-Goto 2

**Yves_BAZIN**(Yves BAZIN) #5

@Andrew_Tuline thank you for your code !! Here is some example running on my panel

**Yves_BAZIN**(Yves BAZIN) #9

**Stefan_Petrick**(Stefan Petrick) #11

The math is explained here: https://www.bidouille.org/prog/plasma

**Stefan_Petrick**(Stefan Petrick) #12

Here one of my implementations of it: https://plus.google.com/u/0/115124694226931502095/posts/9kitMZYQA4y