|
|
@ -122,6 +122,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
a.ctx.DrawImageAnchored(imaging.FlipH(a.image[a.updown]), a.position.X, a.position.Y, 0.5, 0.5)
|
|
|
|
a.ctx.DrawImageAnchored(imaging.FlipH(a.image[a.updown]), a.position.X, a.position.Y, 0.5, 0.5)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a.ctx.DrawStringAnchored("mario", 1, 1, 0.5, 0.5)
|
|
|
|
return a.ctx.Image(), time.After(time.Millisecond * 50), nil
|
|
|
|
return a.ctx.Image(), time.After(time.Millisecond * 50), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|