Python Program To Draw Chhota Bheem
Published October 2, 2023 by Jarvis Silva
In this tutorial I will show you how to create a python program to draw Chhota Bheem, Chhota Bheem one of the popular and loved indian cartoon I remember as kid I used to wake up and turn on my TV to watch Chhota Bheem so I decided to use my python skills to draw Chhota Bheem.
To draw Chhota Bheem using python we will use the sketchpy and turtle library both of them will allows us to draw Chhota Bheem so before moving to the code you need to install both of them use below commands to install.
# use to install sketchpy pip install sketchpy #use to install turtle pip install turtle
After installing both the libraries we are ready to code so now let’s see the code.
Python Code To Draw Chhota Bheem
from sketchpy import canvas from turtle import Screen s = Screen() s.bgcolor('green') img = canvas.sketch_from_svg("chhota-bheem.svg",scale=70) img.draw()
Above is the 6 lines of python code which will draw a sketch of Chhota Bheem, In the code we give a image of Chhota Bheem in svg format to the sketch_from_svg() function so before running this program you need to give it a image so download the Chhota Bheem image from below
After downloading the image move it in your python program folder and add the path name of the file inside sketch_from_svg() function and run this program below is the output you will get
As you can see we successfully drawn Chhota Bheem in python, I hope you found this tutorial helpful and amazing if you want more python programs like this checkout here: Awesome Python drawing programs.
Thank you for reading, Have a nice day 😊
Free courses and programming resourcesJoin Telgram