concat test

This commit is contained in:
2024-09-03 23:07:15 +03:00
parent 7c1911bbda
commit c577804946
4 changed files with 45 additions and 15 deletions

View File

@@ -18,20 +18,6 @@ func Render(img image.Image, rect image.Rectangle) image.Image {
return newimg
}
type SinglePixel struct{}
func (s SinglePixel) At(x, y int) color.Color {
return color.White
}
func (s SinglePixel) ColorModel() color.Model {
return color.RGBAModel
}
func (s SinglePixel) Bounds() image.Rectangle {
return image.Rect(0, 0, 1, 1)
}
func BenchmarkScale(b *testing.B) {
for i := 0; i < b.N; i++ {
err := png.Encode(io.Discard,