About 56,700 results
Open links in new tab
  1. How to draw a circle using turtle in python? - Stack Overflow

    Nov 2, 2020 · I wanted ask how can I draw a circle using turtle module in python just using turtle.forward and turtle.left? I use the code below: for i in range(30): turtle.forward(i) …

  2. How to draw a semicircle in Python turtle only - Stack Overflow

    May 1, 2017 · import turtle tom=turtle.Turtle() tom.circle(100,180) for the circle, the first digit is the radius of the circle and the second one is the amount that you want to draw it for a semicircle …

  3. Python Turtle: Draw concentric circles using circle () method

    Jun 5, 2018 · I was showing a grandson patterns drawn with Python's Turtle module, and he asked to see concentric circles. I thought it would be faster to use the turtle's circle() to draw …

  4. Drawing circles in Python - Stack Overflow

    Oct 10, 2020 · You can use Turtle.Here is a simple example: import turtle t = turtle.Turtle() #This function draw a circle in x,y of radius r def drawCircle(x,y,r): t.pu() t.goto(x,y-r) #-r because we …

  5. How do I draw a circle looping around with a circle in the middle …

    Apr 22, 2016 · from math import sin, cos, pi from turtle import * tracer(2,1) def myCircle(x, y, r, c1, c2): # draw a circle with radius r in the point (x,y) up(); goto(x+r, y) ; down() color(c1, c2) …

  6. How to create a semicircle/ half an oval in turtle python?

    Jan 13, 2023 · This is how you can draw a rotated oval with a start and a end degree point and a offset position on turtle, it's a bit slow but accurate. This is the mathematical explanation of the …

  7. How to draw Circle using Turtle in Python 3 - Stack Overflow

    Oct 11, 2017 · import turtle import math apple=turtle.Turtle() def draw_circle(t, r): circumference = 2 * math.pi * r n = 50 length = circumference / n polygon(t, n, length) draw_circle(apple, 15) …

  8. python - Is there a way to draw multiple circles with Turtle based …

    Jan 6, 2022 · from turtle import Screen, Turtle RADIUS = 25 DISTANCE = 10 screen = Screen() number_circles = screen.numinput("A Circle in a Spiral", "How many circles?", default=10, …

  9. turtle graphics - How to draw arc (part of circle) in python - Stack ...

    Oct 24, 2018 · Some simple code that draws arc: import matplotlib.pyplot as plt from matplotlib.patches import Arc plt.figure(figsize=(6, 6)) # set image size plt.subplots_adjust(0, 0, …

  10. Drawing random circles within a Python turtle circle

    Apr 26, 2015 · Suppose your larger circle has radius R, with your smaller circle having radius r. That means your small circle's center has to be within a circle of radius R-r, so that the smaller …