The paint mixing is actually way closer to the idea of the Diffie-Hellman key exchange, more than RSA.