Question

In: Computer Science

with python, create a fake logo for a company using turtle graphics

with python, create a fake logo for a company using turtle graphics

Solutions

Expert Solution

Here is the completed code for this problem. Comments are included, go through it, learn how things work and let me know if you have any doubts or if you need anything to change. If you are satisfied with the solution, please rate the answer. Thanks

Note: Please maintain proper code spacing (indentation), just copy the code part and paste it in your compiler/IDE directly, no modifications required.

#code

import turtle

''' 
method to draw a logo for a company with name=text
    this method draws a logo something resembling sun & rays or giant wheels
'''
def drawLogo(t, text):
    #pen up
    t.up()
    #using yellow as fill color (use any color you want)
    t.fillcolor('yellow')
    #start filling
    t.begin_fill()
    #drawing and filling a circle with radius 50
    t.circle(50)
    #finish fill
    t.end_fill()
    #turning left 90 degrees
    t.left(90)
    #moving forward 50 spaces. turtle is now at the center of the circle
    t.forward(50)
    #pen down
    t.down()
    #using orange as pen color
    t.pencolor('orange')
    #looping for 20 times
    for i in range(20):
        #moving forward 100 spaces, to draw a line from center to edge
        t.forward(100)
        #drawing a 10px dot at the end
        t.dot(10)
        #moving back 100 spaces
        t.backward(100)
        #moving right 360/20 degrees (360 divided by number of points)
        t.right(360/20)
    #pen up
    t.up()
    #moving down 150 spaces
    t.backward(150)
    #writing company name
    t.write(text, align='center', font=('Arial', 20))


#creating a turtle
t=turtle.Turtle()
#max speed
t.speed(0)
#drawing a logo, change 'COMPANY NAME' to anything you like
drawLogo(t,'COMPANY NAME')
#hiding turtle and finishing off
t.ht()
turtle.done()

#OUTPUT


Related Solutions

Write a function that plots the following trajectory equations using python turtle graphics. x = v*sin(A)*t...
Write a function that plots the following trajectory equations using python turtle graphics. x = v*sin(A)*t y = v*cos(A)*t -.5*(9.8)*t**2 Loop through t starting at 0 and increment by .1 until y<=0. (hint, while loop) Experiment with values of velocity V (1 to 20) and angle A (0 to 90) that gives you a good plot that does not go off the screen. Position the start of the plot at the left bottom of the screen
What would the Python code be to create the following working program using turtle: -Make 4...
What would the Python code be to create the following working program using turtle: -Make 4 turtles that are YELLOW, and 4 turtles that are GREEN. Create these turtles using one or more lists. -Make the yellow turtles start at a different randomized location somewhere on the left side of the screen within the range of (-100,100) and (0, -100) -Make the green turtles start at a different randomized location somewhere on the right side of the screen within the...
Using Python 3 graphics, create a bouncing ball within a box. Allow the user to control...
Using Python 3 graphics, create a bouncing ball within a box. Allow the user to control the ball using their keyboard.
Your (turtle) program in python must include: Create four Red turtles and four Blue turtles using...
Your (turtle) program in python must include: Create four Red turtles and four Blue turtles using one or more lists. • Start each of the Red turtles at a different random location on the left side of the screen within the range of the square formed by (-100, 100) and (0, -100) and each of the Blue turtles at a random location on the right side of the screen within the range of the square formed by (0, 100) and...
Create a python graphics of a smiley face of a dog that includes ears. must start...
Create a python graphics of a smiley face of a dog that includes ears. must start with : from graphics import * or import graphics
Assignment Write a program using turtle graphics which writes your initials, or any other three unique...
Assignment Write a program using turtle graphics which writes your initials, or any other three unique letters, to the display. Look to your program for lab 1 for reminders of how to use turtle graphics. Functions that must be written: def drawLetter (x, y, letterColor): Write three functions, one for three unique letters. Personally, I would write drawA, drawR, and drawS. Each function must draw that letter to the screen. The x and y values determine the upper left-hand location...
Write a function that draw your initials. (Using python 3 turtle) (T, S)
Write a function that draw your initials. (Using python 3 turtle) (T, S)
Python: Using available in Pages turtle technique and, if you can, more advanced tricks, draw a...
Python: Using available in Pages turtle technique and, if you can, more advanced tricks, draw a FLOWER. Submit your result as text file.
Create a Home Page using HTML and CSS Part 1 • Contain an image or logo...
Create a Home Page using HTML and CSS Part 1 • Contain an image or logo about your website. • Must contain three navigation links. Home link. Registration link. Animations link. • Footer will contain links to web pages to any other site you wish (just be outside your webpage, like YouTube,etc.) Open links in new tab, not current tab. Create a Registration page: • Registration Fields: 1) User Name - Input Text 2) Password - Input Password 3) Repeat...
is it possible to have more than one ellipse on python turtle.
is it possible to have more than one ellipse on python turtle.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT