From 8e1d3a151e7009a8ac4d9ba0719d0a6fdcb45de7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 29 May 2017 22:46:15 +0900 Subject: [PATCH] examples/blocks: Bug fix: applying ColorM (#356) --- examples/blocks/blocks/piece.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/blocks/blocks/piece.go b/examples/blocks/blocks/piece.go index c365cb45a..d6f755547 100644 --- a/examples/blocks/blocks/piece.go +++ b/examples/blocks/blocks/piece.go @@ -157,6 +157,7 @@ const ( func drawBlocks(r *ebiten.Image, blocks [][]BlockType, x, y int, clr ebiten.ColorM) { op := &ebiten.DrawImageOptions{} + op.ColorM = clr for j := 0; j < len(blocks[0]); j++ { for i := 0; i < len(blocks); i++ { op.GeoM.Reset()