From 62af94736822f52f0be8f14c83f74a33b74146e7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 5 Mar 2016 00:57:14 +0900 Subject: [PATCH] examples/paint: Change the color --- examples/paint/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/paint/main.go b/examples/paint/main.go index 3b3a72c50..77781dcdd 100644 --- a/examples/paint/main.go +++ b/examples/paint/main.go @@ -46,7 +46,7 @@ func update(screen *ebiten.Image) error { if ebiten.IsMouseButtonPressed(ebiten.MouseButtonLeft) { op := &ebiten.DrawImageOptions{} op.GeoM.Translate(float64(mx), float64(my)) - op.ColorM.Scale(1.0, 0.25, 0.25, 1.0) + op.ColorM.Scale(1.0, 0.50, 0.125, 1.0) theta := 2.0 * math.Pi * float64(count%60) / 60.0 op.ColorM.RotateHue(theta) if err := canvasImage.DrawImage(brushImage, op); err != nil {