Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dgurney committed Oct 1, 2018
1 parent 59db482 commit 93dfb65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion png.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"github.com/satori/go.uuid"
"image"
"image/color"
"image/png"
Expand All @@ -12,6 +11,8 @@ import (
"strconv"
"sync"
"time"

"github.com/satori/go.uuid"
)

const version = "1.0.2"
Expand All @@ -34,6 +35,7 @@ func genImg(ch chan *image.NRGBA, width, height int) {
}
ch <- randomImg
}

func saveImg(img *image.NRGBA, width, height, amount int, wg *sync.WaitGroup) {
defer wg.Done()
id, err := uuid.NewV4()
Expand All @@ -49,6 +51,7 @@ func saveImg(img *image.NRGBA, width, height, amount int, wg *sync.WaitGroup) {
}
file.Close()
}

func main() {
height := flag.Int("h", 500, "Height of image(s)")
width := flag.Int("w", 500, "Width of image(s)")
Expand Down

0 comments on commit 93dfb65

Please sign in to comment.