This commit is contained in:
2026-03-29 17:03:48 +03:00
parent 7143e96ef3
commit 3880b353c1
20 changed files with 491 additions and 23 deletions

View File

@@ -38,7 +38,7 @@ func (r rescaled) At(x, y int) color.Color {
// Scale scales image.Image to a given scale
// and then returns image.Image.
// For now it will work only with positive integers.
func Scale(scale int, img image.Image) image.Image {
func Scale(img image.Image, scale int) image.Image {
if scale < 1 {
scale = 1
}