pixelweaver/main_test.go

22 lines
356 B
Go
Raw Normal View History

package main
import (
"image"
2022-05-01 09:07:46 +02:00
"testing"
)
func TestMain(t *testing.T) {
img1 := loadImage("assets/moutons.jpg")
img2 := loadImage("assets/lavande.jpg")
dimensions := dimensionsToRectangle(800, 600)
outImg := image.NewRGBA(dimensions)
var pool blendWorkerPool
pool.InitWorkerPool()
pool.BlendImages(img1, img2, outImg)
encodeImage(outImg)
}