The science
Proportional methods. With V votes and S seats: D'Hondt gives each seat to the party with the largest v/(s+1); Sainte-Laguë uses v/(2s+1), which treats small parties more evenly. Largest remainder gives every party floor(v/q) seats (Hare quota q = V/S, Droop q = V/(S+1)) and hands the leftover seats to the biggest remainders. A legal threshold removes parties below it before the count.
Plurality (FPTP). Each of S single-member districts is won by the party with the most votes there. Because only the district winner counts, a party's seat share depends on how its votes are spread: concentrated support wins seats, evenly spread support wins few (Duverger's law). The district results here are synthetic: random but fixed regional pockets, calibrated by iterative proportional fitting so the national average equals your sliders. They are illustrative, not election data.
Indices. Gallagher least-squares disproportionality G = √(½ Σ(vi - si)²) (v, s in percent) and the Laakso-Taagepera effective number of parties N = 1/Σpi².
Simplifications: five generic parties ordered left to right, no strategic voting, no party mergers, coalitions limited to adjacent parties and chosen by fewest seats above the majority line (a simple stand-in for government formation). Real systems add districts of different magnitude, tiers, and thresholds that are applied differently.