This commit is contained in:
potassium 2024-05-01 16:16:30 +03:00
parent 8bbcc64472
commit 56208ff04d

View File

@ -66,7 +66,7 @@ func (p pair) At(x, y int) color.Color {
image.ZP, draw.Src, image.ZP, draw.Src,
) )
draw.Draw( draw.Draw(
rgbaImg, p.Bounds(), rgbaImg, p.first.Bounds(),
p.first, p.first,
image.Point{ image.Point{
p.second.Bounds().Dx(), p.second.Bounds().Dx(),
@ -81,7 +81,7 @@ func (p pair) At(x, y int) color.Color {
image.ZP, draw.Src, image.ZP, draw.Src,
) )
draw.Draw( draw.Draw(
rgbaImg, p.Bounds(), rgbaImg, p.first.Bounds(),
p.second, p.second,
image.Point{ image.Point{
p.first.Bounds().Dx(), p.first.Bounds().Dx(),