I have a grid like this:
I want to add a behavior so that when i mouse over a square, it blurs like this:
The way I am doing it now is basically:
"If mouse is over square -> Set Blur enabled"
"if mouse is not over square-> set blur disabled"
I'm fairly certain I understand why this algorithm is inefficient, but I can't think of a better way to do it. I would really appreciate some suggestions on this specific issue and general tips for algorithm efficiency and maybe some pitfalls to look out for (like not continuously enumerating over long lists )