Skip to content

mlthoma/Turtle-WiCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wics-turtle-graphics

UNC WiCS Members

Below is some general directions on how to get started. For this meeting we are going to be splitting off into groups and creating turtle graphics that will be added to the banner of our website!

Step 1: Clone the repo.

Click the green "Use this template" button in the upper right hand corner. This will allow you to create a new repository on your own GitHub account that has the same files and folders stored in the wics-turtle-graphics repo.

Come up with a unique repo name, and decide whether you would like the repo to be public or private. Next, click the green "Create repository from template" button.

Now you have your own repo to develop your turtle graphic from. Additionally, having your own repo allows you to manipulate any of the code that we have provided without consequence should you want to experiment further with turtle graphics outside of this meeting.

Now that you have your own repo, you are going to clone your newly created repo locally so that you can draw your graphic.

Click the green "Code" button in the top right corner of your repo. Make sure you have the "HTTPS" tab selected and copy that link to your clipboard. Next, clone this repo into your preferred IDE (vscode, IntelliJ, PyCharm, etc.). If you need any help with this part, please just let us know!

Step 2: Graphic Design

The next step is to create your design. We have included a demo that we are going to briefly walk through. However, just some major points to remember:

  1. We have created a TurtleImpl class that encapsulates a Python Turtle object. The reason for doing this is so that you can more easily call utility functions to draw shapes that we have provided. Essentially this means that if you want to use access the underlying turtle stored in your TurtleImpl object you will need to use the get_turtle() method associated with the class.

Example:

turtle1 = TurtleImpl() # creates an instance of a TurtleImpl object

turtle1.draw_circle(x, y, radius) # how to call methods of the TurtleImpl class that will help with drawing

_turtle = turtle1.get_turtle() # provides access to the actual Python Turtle object encapsulated in the TurtleImpl class

_turtle.is_visible() # returns a boolean indicating whether the turtle is visible on the screen or not
  1. "Fill" Parameter: For each of the built-in utility methods to the class that draw shapes, there is a default boolean argument that will fill in the shape with the specified color of the turtle. If you want to have a shape drawn without being filled in, you must pass in the keyword argument fill=False.

Step 3: Submission

In order for us to easily assemble all of our graphics together. We have provided a Google Form for you to submit a screenshot of your graphic. There are ways to save your image via code commands, however for simplicity and ease it is better for us to have you take a screenshot and submit.

Google Form Link: https://docs.google.com/forms/d/e/1FAIpQLSc0jEieVtCmur00sKnM2FKecqBG-oCEXmflcBphvoSKdhF4-A/viewform

Thank You!

We really hope that everyone enjoyed this workshop! We wanted to provide a fun and collaborative way for everyone to code while still getting to interact with other members of the club. If you didn't have a chance to finish your graphic, no worries. Details about the website project is coming soon! Feel free to submit as many graphics as you would like in the mean time. Additionally, don't forget to push your work to your GitHub account!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages