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

Method left_value

png.py:254–262  ·  view source on GitHub ↗

return the value of the pixel left to the pixel whose x value is given, 0 if doesn't exist

(x)

Source from the content-addressed store, hash-verified

252 else:
253 left_distance = self.channels
254 def left_value(x) -> int:
255 """
256 return the value of the pixel left to the pixel whose
257 x value is given, 0 if doesn't exist
258 """
259 if x - left_distance >= 0:
260 return row[x - left_distance]
261 else:
262 return 0
263
264 def upper_value(x, y) -> int:
265 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected