Each circle is a motor; bar length is proportional to required thrust. The arrow at the centre shows yaw direction and the body tilt indicates roll and pitch.
$$T_{total} = \frac{m\,(g + a_z)}{\cos\phi\cos\theta},\qquad [T_1, T_2, T_3, T_4]^T = A^{-1}\,[T, M_\phi, M_\theta, M_\psi]^T$$
A is the 4x4 allocation matrix. For a symmetric quadrotor it inverts analytically, so per-motor thrust falls out as a closed-form expression of the desired total thrust and body moments.
$$M_\phi = I_{xx}\,\dot\omega_\phi,\quad M_\theta = I_{yy}\,\dot\omega_\theta,\quad M_\psi = I_{zz}\,\dot\omega_\psi,\qquad I_{xx}\!\approx\!I_{yy}\!\approx\!\tfrac{1}{2}mL^2,\ I_{zz}\!\approx\!mL^2$$
Required moments are inertia times angular acceleration. This tool uses a simple model with gain 5 on roll/pitch and 0.05 on the yaw-rate derivative to synthesise ω̇.
$$T_i = k_T\,\omega_i^2,\qquad \tau_i = k_M\,\omega_i^2$$
Propeller thrust T_i scales with the square of the angular speed ω_i, and the reaction torque τ_i scales the same way. Pairing CW and CCW propellers cancels τ_i and lets the controller produce yaw torque on demand.