Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
 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()
Пример #4
0
 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()