some redesign

This commit is contained in:
2026-03-04 02:14:21 +03:00
parent c25b65a5f6
commit e5c0537f2b
4 changed files with 82 additions and 4 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(img image.Image, scale int) image.Image {
func Scale(scale int, img image.Image) image.Image {
if scale < 1 {
scale = 1
}