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

Method set_style

imagepy/core/myvi/manager.py:79–86  ·  view source on GitHub ↗
(self, mode=None, blend=None, color=None, visible=None)

Source from the content-addressed store, hash-verified

77 self.prog = prog
78
79 def set_style(self, mode=None, blend=None, color=None, visible=None):
80 if not mode is None: self.mode = mode
81 if not blend is None: self.blend=blend
82 if not visible is None: self.visible=visible
83 if not color is None:
84 self.buf[:,6:9] = color
85 self.vbo.write(self.buf.tobytes())
86 self.color = color if isinstance(color, tuple) else (0,0,0)
87
88 def draw(self, mvp, light, bright, scatter):
89 if not self.visible: return

Callers 8

set_cursorMethod · 0.45
mouse_upMethod · 0.45
on_visibleMethod · 0.45
on_blendMethod · 0.45
on_modeMethod · 0.45
on_colorMethod · 0.45
add_surfMethod · 0.45
runMethod · 0.45

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected