Guest User

Untitled

a guest
Jul 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. """
  2. This is a sample program to show how to draw using functions
  3. """
  4.  
  5. import arcade
  6.  
  7.  
  8. def draw_grass():
  9. """
  10. This function draws the grass.
  11. """
  12. arcade.draw_lrtb_rectangle_filled(0, 800, 200, 0, arcade.color.BITTER_LIME)
  13.  
  14.  
  15. arcade.open_window(800, 600, "Drawing with Functions")
  16. arcade.set_background_color(arcade.color.AIR_SUPERIORITY_BLUE)
  17. arcade.start_render()
  18.  
  19. # Call our function to draw the grass
  20. draw_grass()
  21.  
  22. arcade.finish_render()
  23. arcade.run()
Add Comment
Please, Sign In to add comment