Posts

Draw Shinchan Using Python Turtle

Image
              Draw Shinchan Using Python Turtle   In this tutorial, we will be learning to draw the famous cartoon character Shinchan with Python Turtle. By the end of this tutorial, you will have cleared your concept regarding the basics of python, the basics of the turtle module, and the intermediate of the turtle module. First, we will see how to code our cartoon and see the code itself. Explanation: First Part: First, import everything from the turtle module. Then, set a turtle screen into a variable “s”. Set the screen size to (700, 1000) and the speed to 5. Define a function myPosition() with the parameters “x, y”. Here, pick the pen up as we are not ready to draw. Go to the position as in (x, y). Put the pen down. Set the pen size to 2. Second Part: Define a function named ankur() for the shorts of our drawing. Here, set the fill color as ‘#ffec40’. Begin the fill. Now, move the turtle right at 25 units, forward at 20, right at 45, and agai...

Draw Iron Man Helmet Using Python Turtle.

Image
            Welcome to easy coding with Harsh.                   Draw Iron Man Helmet Using Python Turtle.           In this tutorial, we will be learning to Draw Ironman Helmet with Python  Turtle . We will first read the code and then read the explanation where we will fully understand the code. Code:                    import turtle # Top Part piece1=[[(-40, 120), (-70, 260), (-130, 230), (-170, 200), (-170, 100), (-160, 40), (-170, 10), (-150, -10), (-140, 10), (-40, -20), (0, -20)],[(0, -20), (40, -20), (140, 10), (150, -10), (170, 10), (160, 40), (170, 100), (170, 200), (130, 230), (70, 260), (40, 120), (0, 120)]] # Middle Part piece2=[[(-40, -30), (-50, -40), (-100, -46), (-130, -40), (-176, 0), (-186, -30), (-186, -40), (-120, -170), (-110, -210), (-80, -230), (-64, -210), (0, -210)],[(0, -210), (64, -210), (80, -230), (110, -...