Giter Club home page Giter Club logo

py-turtles's Introduction

Py-Turtles

A collection of Python Turtle Graphics

This repository is for beginners interested in learning Python, in a fun interactive way.

Goals: To create an Open Source Project where anyone can contribute their design patterns or problem sets.

If you feel like contributing just open a PR, or contact [email protected] with any questions

Table of Contents:

  1. Basic
  2. Colors
  3. Advanced

Quick Overview

  • Here's a quick example of a Turtle program that draws a square Image
import turtle             # import the turtle module

wn = turtle.Screen()      # create the screen
wn.bgcolor("lightgreen")  # sets background color of screen

alex = turtle.Turtle()    # create your turtle named => alex
alex.color("red")         # set turtle line color to red

alex.forward(100)         # move turtle forward 100 pixels
alex.left(90)             # turn turtle 90degrees to the left
alex.forward(100)         # repeat ^ steps 3 more times
alex.left(90)
alex.forward(100)
alex.left(90)
alex.forward(100)
alex.left(90)

wn.exitonclick()          # Allows user to exit the turtle window on click

Basics

Using the turtle module try to draw the following [Python Docs]


Problem I blocks.py

Image


Problem II squares-in-squares.py

Image


Problem III two-spirals.py

Image


Problem IV five-stars.py

Image


Problem V odd-stars.py

Image


Problem VI wagonwheel.py

Using a 4-square

Image

Draw this pattern

Image


Problem VII negative-chart.py


Colors

  • Coming Soon

Advanced

  • Coming Soon

py-turtles's People

Contributors

ianarsenault avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.