p5.js Code Painter by Jack B. Du. Source code available on GitHub. This is an experimental painting app that translates your painting into p5.js code in real time. Only desktop browsers are supported.

Shortcuts: Ctrl/⌘ + X (Cut), Ctrl/⌘ + C (Copy), Ctrl/⌘ + V (Paste), Ctrl/⌘ + D (Duplicate), Ctrl/⌘ + Z (Undo), Ctrl/⌘ + ⇧ + Z (Redo), Ctrl/⌘ + A (Select All), Backspace (Remove Selection), Arrow Keys (Move Selection)

To run your code, copy entire code in the text area, paste it in p5.js Web Editor, and click the play button to see the result.