That is about as close as you'll get
yellow when $x\in\mathbb{Q}$, blue otherwise
but no matter, as the function approaches any of the points where the continuous curves cross, the function that flips between the two, depending on $x\in\mathbb{Q}$, is continuous
Because both continuous curves tend to the same value at those points.