Sure! Here is a simple implementation of the game you described:
This code creates a particle universe game where particles of different colors move around in a canvas, colliding with each other and changing color as they collide to create heavier elements, just like in your description. Feel free to customize it further to make it more interactive or add more features!