class Canvas(app.Canvas): def __init__(self): app.Canvas.__init__(self, keys='interactive', size=(800, 800)) self.points = ModularPoint(pos, color=(0, 1, 0, 1)) self.tr_sys = visuals.transforms.TransformSystem(self) self.show() def on_draw(self, ev): gloo.set_clear_color('black') gloo.clear(color=True, depth=True) gloo.set_viewport(0, 0, *self.physical_size) self.points.draw(self.tr_sys)
class Canvas(app.Canvas): def __init__(self): app.Canvas.__init__(self, keys='interactive') self.points = ModularPoint(pos, color=(0, 1, 0, 1)) self.tr_sys = visuals.transforms.TransformSystem(self) self.size = (800, 800) self.show() def on_draw(self, ev): gloo.set_clear_color('black') gloo.clear(color=True, depth=True) gloo.set_viewport(0, 0, *self.size) self.points.draw(self.tr_sys)
def __init__(self): app.Canvas.__init__(self, keys='interactive') self.points = ModularPoint(pos, color=(0, 1, 0, 1)) self.tr_sys = visuals.transforms.TransformSystem(self) self.size = (800, 800) self.show()
def __init__(self): app.Canvas.__init__(self, keys='interactive', size=(800, 800)) self.points = ModularPoint(pos, color=(0, 1, 0, 1)) self.tr_sys = visuals.transforms.TransformSystem(self) self.show()