hoping someone can point me in the right direction here.

gplus
(Walter Szarek) #1

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

5f189e3484a6788895926c14be093a44.jpeg

(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) #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

(Walter Szarek) #4

thanks that is fairly simple

(Yves BAZIN) #5

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

(Andrew Tuline) #6

Looks great!!

(Will Tatam) #7

Can you share the full sketch @Yves_BAZIN ?

(Yves BAZIN) #8

@Will_Tatam of course when back home I will publish it

(Yves BAZIN) #9

@Will_Tatam here it is https://gist.github.com/hpwit/5b9df75a0aae6dcb7387e3ea2ae1075f

(Andrew Tuline) #10

Here’s my own 1D version:

(Stefan Petrick) #11

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

(Stefan Petrick) #12

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