On some websites, the cursor is some shape, which is easy enough to do, make a div with some css that follows the mouse.
But on some other sites, I see that when the cursor moves, it filters on a pixel by pixel basis depending on what element it is hovering over, eg:
the circle is the cursor. when it's over the red square, those overlapping pixels are cyan, the others are red, the rest of the circle is the original white.
How can this be accomplished in css/js/html
Any help appreciated?