Editing images can be done in a single line of code, if you append the operations like so:
# This script: i:me.copy[] i.map[(39,35) dict (35,39)] i.transform["horiz"] me.paste[i] # Can be condensed into one line: me.paste[me.copy[].map[(39,35) dict (35,39)].transform["horiz"]]
If you use this particular script in tandem with a click event, you can make a canvas that swaps red with blue and flips when clicked.
