works as intended
This commit is contained in:
parent
da7aa9a43b
commit
22d9315fc6
@ -43,12 +43,13 @@ func Draw(img image.Image) error {
|
||||
for w := 0; w < Width; w++ {
|
||||
_, err := buf.Write(Bytes(img.At(w, h)))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
err := buf.Flush()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user