working Dockerfile green ball
This commit is contained in:
2
main.go
2
main.go
@@ -75,7 +75,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
|
||||
a.ctx.Clear()
|
||||
|
||||
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()
|
||||
return a.ctx.Image(), time.After(time.Millisecond * 50), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user