ith the same shape, but
overlay each other: instead, just paint one with the combined color.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static Color alphaBlend(Color foreground, Color background) {
  final int alpha = foreground.alpha;
  if (alpha == 0x00) { &#47;&#47; Foreground completely transparent.
    return background;
  }
  final int invAlpha = 0xff - alpha;
  in