So I solved this problem. For paint mixing:
Good thing I studied Graph Theory. I will create a pull request soon.