title: Color operation in go
body: <p>There're some simple color operations, but the output is wrong. I'm just wondering what happened here.</p>
  <p>main.c:</p>
  <pre><code>package main
  
  import (
      &quot;fmt&quot;
      &quot;image/color&quot;
  )
  
  func main() {
      startColor := color.RGBA{0x34, 0xeb, 0x64, 0xff}
      endColor := color.RGBA{0x34, 0xc9, 0xeb, 0xff}
      fmt.Printf(&quot;%d-%d=%d\n&quot;, endColor.G, startColor.G, endColor.G-startColor.G)
  }
  
  </code></pre>
  <p>output:</p>
  <pre><code>201-235=222
  </code></pre>