Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Image-Py/imagepy
/ multiply
Function
multiply
imagepy/ui/canvas.py:25–27 ·
view source on GitHub ↗
(r, kx, ky)
Source
from the content-addressed store, hash-verified
23
return
[x, y, w, h]
24
25
def
multiply(r, kx, ky):
26
r = [r[0]*kx, r[1]*ky, r[2]*kx, r[3]*ky]
27
return
[ceil(i)
for
i in r]
28
29
def
lay(r1, r2):
30
if
r2[2]<=r1[2]:r2[0]=(r1[2]-r2[2])//2+r1[0]
Callers
1
draw_image
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected