I want to draw random shapes in random colors in an image using python. Is there any module which exists in python to draw random shapes like polygons of different sizes and shapes and mixed together to form a new shape etc
Thanks a lot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Being unsure of what you are trying to accomplish, the following code is a simple example of how to generate random shapes and display them in a window. It create a
tkinterroot object, sets up aCanvasfor display, and randomly creates and shows polygons for each second the program is run.