MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / from_bottom_edge

Function from_bottom_edge

brainworkshop.py:124–125  ·  view source on GitHub ↗
(from_edge)

Source from the content-addressed store, hash-verified

122 return int(window.height - (from_edge * window.height/DEFAULT_WINDOW_HEIGHT))
123
124def from_bottom_edge(from_edge):
125 return int(from_edge * (window.height/DEFAULT_WINDOW_HEIGHT))
126
127def from_right_edge(from_edge):
128 return int(window.width - (from_edge * window.width/DEFAULT_WINDOW_WIDTH))

Callers 8

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected