About 50 results
Open links in new tab
  1. Draw a square in Python Turtle - Stack Overflow

    Draw a square in Python Turtle Asked 8 years, 1 month ago Modified 7 months ago Viewed 26k times

  2. python - Is there a way to draw rectangles and/or squares with ...

    Oct 14, 2021 · I have the following code and would like to draw rectangles or squares in the figure/plot that is created. I was thinking that importing the Rectangle library would help, but so …

  3. python - How to draw a rectangle on image - Stack Overflow

    Here is PIL's ImageDraw method to draw a rectangle. Here is one of OpenCV's methods for drawing a rectangle. Your question asked about Matplotlib, but probably should have just …

  4. python - How to draw a square inside a square? - Stack Overflow

    Dec 17, 2019 · pink square is the taskI am trying to draw a square inside a square using turtle graphics. I couldn't draw exactly like the original one. Here is my code import turtle win = …

  5. Draw a square using for loops in python? - Stack Overflow

    Draw a square using for loops in python? Asked 7 years, 2 months ago Modified 7 years, 2 months ago Viewed 7k times

  6. python - How can I draw a bunch of squares? - Stack Overflow

    May 27, 2015 · I am very new to python. I need to draw this shape for college but i find it really hard so i am trying to do square before going into that image. Anyway here is my question: …

  7. python: simple square grid - Stack Overflow

    Mar 20, 2019 · Recently, I've been trying to figure out a 20 by 20 square grid. so far I've only figured out how to draw 4 no matter what I put as my # of. it would be greatly appreciated if …

  8. python - Drawing a hollow asterisk square - Stack Overflow

    May 11, 2017 · I'm trying to figure out how to turn my whole square into a hollow one. The few things I've tried so far haven't been very successful as I end up getting presented with a rather …

  9. Simpler way to make a square and rotated square in Python Turtle ...

    Dec 6, 2016 · Write a function to draw a square of a given size, assuming that the turtle is presently at the starting point and facing the proper direction. Then put your square-drawing …

  10. tkinter - Drawing Squares in Python - Stack Overflow

    Nov 15, 2021 · So, I have to write a code in python that will draw four squares under a function called draw_square that will take four arguments: the canvas on which the square will be …