Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ pxy
Function
pxy
recipes/Python/578029_Generalized_ApolloniGasket/recipe-578029.py:88–91 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
86
87
# pixel coordinate calculation
88
def
pxy(x, y):
89
kx = int((x - xa) / (xb - xa) * (imgx - 1))
90
ky = int((y - ya) / (yb - ya) * (imgy - 1))
91
return
(kx, ky)
92
93
# generate the main circles: n circles in a circle
94
circles = []
Callers
1
recipe-578029.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected