|
|
@ -75,7 +75,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
|
|
|
|
a.ctx.Clear()
|
|
|
|
a.ctx.Clear()
|
|
|
|
|
|
|
|
|
|
|
|
a.ctx.DrawCircle(float64(a.position.X), float64(a.position.Y), float64(a.stroke))
|
|
|
|
a.ctx.DrawCircle(float64(a.position.X), float64(a.position.Y), float64(a.stroke))
|
|
|
|
a.ctx.SetColor(color.RGBA{255, 0, 0, 255})
|
|
|
|
a.ctx.SetColor(color.RGBA{0, 255, 0, 255})
|
|
|
|
a.ctx.Fill()
|
|
|
|
a.ctx.Fill()
|
|
|
|
return a.ctx.Image(), time.After(time.Millisecond * 50), nil
|
|
|
|
return a.ctx.Image(), time.After(time.Millisecond * 50), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|