MCPcopy Create free account
hub / github.com/Image-Py/imagepy / set_viewport

Method set_viewport

imagepy/core/myvi/manager.py:242–244  ·  view source on GitHub ↗
(self, x, y, width, height)

Source from the content-addressed store, hash-verified

240 self.mvp = (lookat, proj)
241
242 def set_viewport(self, x, y, width, height):
243 self.ctx.viewport = (x, y, width, height)
244 self.ratio = width*1.0/height
245
246 def set_background(self, rgb): self.background = rgb
247

Callers 2

OnDrawMethod · 0.80
DoSetViewportMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected