From 62b364de2dd34218e3827b3f95f3bdf68cc8166e Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 31 May 2017 00:58:17 +0900 Subject: [PATCH] examples/paint: Refactoring --- 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 6ca4ca7ae..9982715ce 100644 --- a/examples/paint/main.go +++ b/examples/paint/main.go @@ -42,7 +42,7 @@ func paint(screen *ebiten.Image, x, y int) { op := &ebiten.DrawImageOptions{} op.GeoM.Translate(float64(x), float64(y)) op.ColorM.Scale(1.0, 0.50, 0.125, 1.0) - theta := 2.0 * math.Pi * float64(count%60) / ebiten.FPS + theta := 2.0 * math.Pi * float64(count%ebiten.FPS) / ebiten.FPS op.ColorM.RotateHue(theta) canvasImage.DrawImage(brushImage, op) }