Drawing Captain America Shield In Python Turtle

Drawing Captain America Shield In Python Turtle

Share It With Your Firends:

import turtle
import math

ca = turtle.Turtle()


def func_1(x, y):
    ca.penup()
    ca.goto(x, y)
    ca.pendown()
    ca.setheading(0)
    ca.pensize(2)
    ca.speed(10)


def circle(r, color):
    x_point = 0
    y_pont = -r
    func_1(x_point, y_pont)
    ca.pencolor(color)
    ca.fillcolor(color)
    ca.begin_fill()
    ca.circle(r)
    ca.end_fill()


def star(r, color):
    func_1(0, 0)
    ca.pencolor(color)
    ca.setheading(162)
    ca.forward(r)
    ca.setheading(0)
    ca.fillcolor(color)
    ca.begin_fill()
    for i in range(5):
        ca.forward(math.cos(math.radians(18)) * 2 * r)
        ca.right(144)
    ca.end_fill()
    ca.hideturtle()


if __name__ == '__main__':
    circle(288, 'crimson')
    circle(234, 'snow')
    circle(174, 'crimson')
    circle(114, 'blue')
    star(114, 'snow')
    turtle.done()

Share It With Your Friends

Leave a Reply

Recent Posts

  • All Post
  • A.I.
  • AI
  • c
  • c++
  • computer
  • cryptocurrency
  • database
  • digital marketing
  • finance
  • hacking
  • HTML
  • java
  • Marketing
  • network
  • other
  • programming
  • python
  • react
  • social
  • Tools
  • Uncategorized
  • web devlopment
    •   Back
    • drawing In Python
DIY AI Voice Assistant In Python

September 8, 2023

Build your own AI assistant with Python! Learn to recognize voice commands, generate responses, and more. Create your virtual companion…

share it

Recent Posts

  • All Post
  • A.I.
  • AI
  • c
  • c++
  • computer
  • cryptocurrency
  • database
  • digital marketing
  • finance
  • hacking
  • HTML
  • java
  • Marketing
  • network
  • other
  • programming
  • python
  • react
  • social
  • Tools
  • Uncategorized
  • web devlopment
    •   Back
    • drawing In Python

Additional Content

CodeWithAM

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus luctus.

Products

Automated Chatbot

Data Security

Virtual Reality

Communication

Support

Services

FAQ's

Privacy Policy

Terms & Condition

Team

Contact Us

Company

About Us

Services

Features

Our Pricing

Latest News

© 2023 Codewitham