github.com/transcriptaze/wav2png@v1.1.0/wav2png/fill_test.go (about)

     1  package wav2png
     2  
     3  import (
     4  	"image"
     5  	"image/color"
     6  	"testing"
     7  )
     8  
     9  func BenchmarkSolidFill(b *testing.B) {
    10  	img := image.NewNRGBA(image.Rect(0, 0, 2048, 1536))
    11  	fill := SolidFill{
    12  		colour: color.NRGBA{R: 0x00, G: 0x00, B: 0x00, A: 255},
    13  	}
    14  
    15  	fill.Fill(img)
    16  }