Thanks mate, it looks pretty similar of what I’m looking for. It’s a great help.
But for the application that i really need, it doesn’t depends of the variable mouse and don’t have to be changing.
I’m looking for a fix image grid of a few “focus” of squares and others of circles positioned randomly over the canvas. And every time Runs the code generate a different image with the focus of shapes positioned differently. And the “shape gradient” from focus of squares to the focus of circles linking both shapes.
Don’t know if i explained well, but yours it’s a great help so far. I’ll be playing with that. Cheers!