Flying Color

Tap the ball to make it fly.
The ball can only pass through obstacles of its same color.
How far can you make it?