Пример #1
0
def on_draw(delta_time):
    """ Use this function to draw everything to the screen. """

    # Start the render. This must happen before any drawing
    # commands. We do NOT need an stop render command.
    arcade.start_render()

    # Draw shapes
    arcade.draw_all(shapes)
Пример #2
0
def on_draw(delta_time):
    """ Use this function to draw everything to the screen. """

    # Start the render. This must happen before any drawing
    # commands. We do NOT need an stop render command.
    arcade.start_render()

    # Draw shapes
    arcade.draw_all(shapes)
Пример #3
0
def on_draw(delta_time):
    """ Use this function to draw everything to the screen. """

    # Start the render. This must happen before any drawing
    # commands. We do NOT need an stop render command.
    arcade.start_render()

    # Draw shapes
    on_draw.rectangle.draw()
    on_draw.oval.draw()
    on_draw.ellipse.draw()
    on_draw.circle.draw()
    on_draw.square.draw()
    arcade.draw_all(shapes)

    #update shape positions
    on_draw.rectangle.update()
    on_draw.oval.update()
    on_draw.ellipse.update()
    on_draw.circle.update()
    on_draw.square.update()
    arcade.update_all(shapes)
Пример #4
0
def on_draw(delta_time):
    """ Use this function to draw everything to the screen. """

    # Start the render. This must happen before any drawing
    # commands. We do NOT need an stop render command.
    arcade.start_render()

    # Draw shapes
    on_draw.rectangle.draw()
    on_draw.oval.draw()
    on_draw.ellipse.draw()
    on_draw.circle.draw()
    on_draw.square.draw()
    arcade.draw_all(shapes)

    # update shape positions
    on_draw.rectangle.update()
    on_draw.oval.update()
    on_draw.ellipse.update()
    on_draw.circle.update()
    on_draw.square.update()
    arcade.update_all(shapes)