Interactively recolor a sketch

from blog Sacha Chua, | ↗ original
I wanted to be able to change the colours used in a sketch, all from Emacs. For this, I can reuse my Python script for analyzing colours and changing them and just add some Emacs Lisp to pick colours from Emacs. Figure 1: Selecting the colour to replace Figure 2: Selecting the new colour (defvar my-recolor-command "/home/sacha/bin/recolor.py")...