WOOD_BROWN, 3 ) # Draw a set of lines arcade. RED, 10 ) # Draw a set of points arcade. draw_text ( "draw_point", 3, 405, arcade. BLACK, 2 ) # Draw horizontal lines every 200 pixels for y in range ( 0, 601, 200 ): arcade. start_render () # Draw a grid # Draw vertical lines every 120 pixels for x in range ( 0, 601, 120 ): arcade. This must be done before any drawing commands. open_window ( 600, 600, "Drawing Example" ) # Set the background color to white # For a list of named colors see # Colors can also be specified in (red, green, blue) format and # (red, green, blue, alpha) format. Set the window title and dimensions (width and height) arcade. If this fails, then try following the instructions # for how to install arcade: # import arcade # Open the window. API documentation for the draw commands can be found here: A video explaining this example can be found here: """ # Import the Arcade library. It does not assume the programmer knows how to define functions or classes yet. This example shows the drawing primitives and how they are used.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |