LED Matrix glitchy pixels and it stays on after unplugging

The number of times we have heard that.
Post the code, not links.
No idea what the video is showing.
Do you know what a capacitor does?