Hold LMB to draw. Look inside to see the code.
100% made by me. I figured out how mario paint (drawing) works by messing with clones. The clones separate because of the speed your mouse is going. It goes smooth when your mouse is slow, but as it gets faster, It separates.