How to: Close left switch and wait. The pot near the bottom will adjust the voltage but it's not particularly stable (bug workaround).
A simplified demo based on the TL494. It's used in a lot of switch mode power supplies and does a lot of tedious work in a single package. There's docs online with more complete info, but in a nutshell, it compares a rising sawtooth wave (green trace) to 2 reference signals (one is shown in blue) and enables the output only when both signals are below the sawtooth.
One of the comparators handles dead-time control, which is why the startup is so gradual. Without that it would overcompensate the difference and cause the output voltage to overshoot.
(Note that the real IC uses error amps for feedback but due to op amp bugs this one just has a pot.)