go-imgrow/scalexy.go

9 lines
122 B
Go
Raw Normal View History

2024-02-09 19:07:51 +00:00
package imgrow
func scaleXY(scalar int, x int, y int) (int, int) {
x2 := x * scalar
y2 := y * scalar
return x2, y2
}