Hi, I've build a 7x7 led matrix in a coffee table with 4 pressure

fastled-samples
gplus
(Brecht Debruyne) #1

Hi, I’ve build a 7x7 led matrix in a coffee table with 4 pressure sensitive resistors in the corners.
I want to make the table fade in colour every time the pressure changes.
I already wrote a function detecting the pressure point X,Y coordinates on the table.
I want to make a colour crossfade starting from the X,Y coordinates where the touch is detected. Has anyone already wrote a function that does a smooth colour crossfade that originates from a coordinate and then expands (grows) to the rest of the matrix?

(Thomas Runge) #2

You mean blur2d?

(Brecht Debruyne) #3

If I see video’s of blur2d, its a dot moving. What I want is a dot bleeding/expanding and filling the complete matrix in a new colour.

(Luminous Elements) #4

If you do an iteration of blur2d every frame, you should see your single dot bleed across your matrix as long as you’re re-painting the dot every frame.

(Brecht Debruyne) #5

This makes sense, I’ll try this weekend.