Collect, combine colors and reach the exit by unlocking the doors found along the way. How far can you go?
Then get the green ball and open the gate next to you, then grab the purple ball next to the green gate you just opened and bring it to the right side all the way down to the bottom purple gate. Then grab the green ball next to it and open the green gate to the side of the purple gate you just opened.
There are two ways to do the next part but I'll try to tell the one that seems the easiest. Grab the purple ball that's closest and open the gate that's not surrounded by green balls. Then you'll see a blue ball guarding a red ball, grab the blue ball without touching the red ball, then use it to open the closest blue gate.
Then grab the red ball and bring it to the yellow ball on the top right and use it to open a orange gate, then you'll be able to escape.