Let $A$ be a parameter set, let $x$ be a tuple of variables, and let $S_x(A)$ denote the Stone space of complete $x$-types over $A$, equipped with the Stone topology whose basic clopen sets are
\begin{align*}
[\psi] := \{p \in S_x(A) : \psi \in p\}
\end{align*}
for $A$-formulas $\psi(x)$. For every $A$-formula $\varphi(x)$, define
\begin{align*}
f_\varphi: S_x(A) &\to \{0,1\} \\
p &\mapsto
\begin{cases}
1, & \varphi \in p, \\
0, & \varphi \notin p.
\end{cases}
\end{align*}
where $\{0,1\}$ is equipped with the discrete topology. Then $f_\varphi$ is continuous.