MCPcopy Create free account
hub / github.com/ICE27182/Python-3D-renderer / upper_value

Method upper_value

png.py:264–272  ·  view source on GitHub ↗

return the value of the pixel right above the pixel whose coordinate is given, 0 if doesn't exist

(x, y)

Source from the content-addressed store, hash-verified

262 return 0
263
264 def upper_value(x, y) -> int:
265 """
266 return the value of the pixel right above the pixel whose
267 coordinate is given, 0 if doesn't exist
268 """
269 if y != 0:
270 return defiltered_bytes[y - 1][x]
271 else:
272 return 0
273
274 def upper_left_value(x, y) -> int:
275 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected