|
|
@ -126,7 +126,7 @@ func NewAnimation(sz image.Point, mqMessages chan mqtt.Message) *Animation {
|
|
|
|
rawMario, _, err = image.Decode(reader)
|
|
|
|
rawMario, _, err = image.Decode(reader)
|
|
|
|
//marioDown := imaging.FlipH(imaging.Resize(rawMario, 16, 16, imaging.Lanczos))
|
|
|
|
//marioDown := imaging.FlipH(imaging.Resize(rawMario, 16, 16, imaging.Lanczos))
|
|
|
|
marioDown := imaging.Resize(rawMario, 16, 16, imaging.Lanczos)
|
|
|
|
marioDown := imaging.Resize(rawMario, 16, 16, imaging.Lanczos)
|
|
|
|
images := []image.Image{marioUp, marioDown}
|
|
|
|
images := []image.Image{marioUp, marioDown, nil}
|
|
|
|
return &Animation{
|
|
|
|
return &Animation{
|
|
|
|
ctx: gg.NewContext(sz.X, sz.Y),
|
|
|
|
ctx: gg.NewContext(sz.X, sz.Y),
|
|
|
|
dir: image.Point{1, 1},
|
|
|
|
dir: image.Point{1, 1},
|
|
|
|