A flat two-colour graphic
- Input
- A graphic of 1000 × 1000 px, the left half solid #f04e23 and the right half solid #ffffff
- Working
- Total pixels = 1,000,000. Each colour covers 500,000 px: 500,000 ÷ 1,000,000 × 100 = 50.0% each. A flat graphic has exactly two colour groups, so the palette has exactly two swatches.
- Result
- #f04e23 at 50% and #ffffff at 50% — exactly two colours