0% found this document useful (0 votes)
87 views16 pages

Micro Project: Advanced Python Programming

The document discusses using the Python turtle module to draw the character Doraemon. It provides an introduction to turtle graphics and describes various turtle methods like fillcolor(), tracer(), seth(), fd(), circle(), pensize(), penup(), pendown(), dot(), goto(), speed(), screensize(), bgcolor(), begin_fill(), and end_fill() that can be used to control the turtle and draw shapes. It then gives an example to draw Doraemon using these turtle methods.

Uploaded by

Urvesh Prajapati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views16 pages

Micro Project: Advanced Python Programming

The document discusses using the Python turtle module to draw the character Doraemon. It provides an introduction to turtle graphics and describes various turtle methods like fillcolor(), tracer(), seth(), fd(), circle(), pensize(), penup(), pendown(), dot(), goto(), speed(), screensize(), bgcolor(), begin_fill(), and end_fill() that can be used to control the turtle and draw shapes. It then gives an example to draw Doraemon using these turtle methods.

Uploaded by

Urvesh Prajapati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

MICRO PROJECT

Advanced Python Programming


Enrollment No. Name Mobile No. Division

226170316147 Vaghela Dhruv 9624713942 B

226170316123 Rathod 9924339078 B


Vishvadeep

226170316092 Patel Dhyan 6356357584 B

226170316147 Prajapati Urvesh 9265016808 B


TOPIC

Explain Turtle And Draw Famous


character doraemon using turtle module.
 Introduction to turtle graphics:-

 Turtle graphics were part of the original Logo of the


programming language developed by Wally Feurzeig, Seymour
Papert, and Cynthia Solomon in 1967.

 Using the Python turtle library, we can draw and create various
types of shapes, images, mini-games, and animations.
 Turtle’s Method :-

1. fillcolor()

 The fillcolor() method is used to change the color of the turtle. The fillcolor() method
has one argument that is the color name.

2. tracer()

 the turtle. tracer() function to draw shapes pictures. Tracer is used to turn the
animation on-off and also set a delay for updating our drawing objects.
3. seth()
 SETHEADING (seth) turns the turtle to the degree position specified by its input.
Positive numbers turn the turtle clockwise and negative numbers turn the
turtle anti clock-wise.

4. fd()
 forward is a turtle primitive that makes the asked turtle move forward on a straight
patch for a provided number of units.

5. circle(x, y)
 circle() command is used to draw a circle shape with the help of a turtle.
6. pensize()
 We can set the width of the pen using pensize() method. The pensize() method has one
argument that is a positive number.

7. penup()
 The penup() or the pu() method picks up the turtle’s pen and we can move the turtle
without drawing.

8. pendown()
 The pendoen() or pd() method puts down the turtle’s pen. We can bring the turtle down
and draw.

9. dot()
 The dot() is used to draw a filled circle.
10. goto()
 Moves the turtle from the current position to the location x, y along the shortest linear
path between the two locations.

11. speed()
 We can control the speed of pen using the speed() method. The speed() method has
one argument that is a positive number.

12. screensize()
 To change screen size we can use screensize() method. The screensize method has
two arguments – (canvase height, canvas width) coordinates./
13. bgcolor()
 We can modify the background color using the bgcolor() method. The bgcolor()
method has one argument that is the color name.

14. begin_fill() and end_fill()


 It is used to fill shape using the current fill color.

 For example, if the current pen color is Red, then any shape we draw in between
begin_fill() and end_fill() will be filled with the color Red. If the color of the pen is
currently Blue, then any shape drawn will be filled with Blue.
Ex :- Draw famous character Doraemon using
turtle module.
 OUTPUT :-

You might also like