Moved image saving to common.

This commit is contained in:
Sascha L. Teichmann 2014-09-14 00:31:28 +02:00
parent 5319e113bf
commit 9106d71363
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ func main() {
colors.Colors, color.RGBA{R: 0xff, G: 0xff, B: 0xff, A: 0xff}) colors.Colors, color.RGBA{R: 0xff, G: 0xff, B: 0xff, A: 0xff})
} }
if err = SaveAsPNG(outfile, image); err != nil { if err = common.SaveAsPNG(outfile, image); err != nil {
log.Fatalf("writing image failed: %s", err) log.Fatalf("writing image failed: %s", err)
} }

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license // Use of this source code is governed by the MIT license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
package main package common
import ( import (
"bufio" "bufio"