// Set a pixel in img by blending c on top of whatever color is // already there func blend(pt image.Point, c color.Color, img *image.RGBA64) { cc := over(c, img.At(pt.X, pt.Y)) img.Set(pt.X, pt.Y, cc) }