Input(source): 12v (Green)
Buck Converter: 12v -> 5v (Purple)
Boost Converter: 12v -> 30v (Orange, ^ Voltage but less current)
Buck-Boost Converter: 12v->-5v (Red, inverted)
Duty Cycle of switching transistor determined output voltage: Vo = D*Vi
https://www.allaboutcircuits.com/technical-articles/analysis-of-four-dc-dc-converters-in-equilibrium/