How an Amoeba Learns to Paint