MCPcopy Index your code
hub / github.com/csev/py4e / world

Method world

code/graphics/graphics.py:402–406  ·  view source on GitHub ↗
(self,xs,ys)

Source from the content-addressed store, hash-verified

400 return int(xs+0.5),int(ys+0.5)
401
402 def world(self,xs,ys):
403 # Returns xs,ys in world coordinates
404 x = xs*self.xscale + self.xbase
405 y = self.ybase - ys*self.yscale
406 return x,y
407
408
409# Default values for various item configuration options. Only a subset of

Callers 1

toWorldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected