About 27,200 results
Open links in new tab
  1. python - Draw Triangle by turtle - Stack Overflow

    Jun 23, 2020 · How to draw a tiled triangle with python turtle. 0. Filling triangles in Python (Turtle) 1.

  2. drawing a triangle with lines across using python turtle

    Jul 6, 2020 · Here is a basic triangle, if you have a function called drawTriangle then it kind of makes sense to make it draw a triangle rather than something that you have to call three times …

  3. turtle graphics - How to draw right angled triangle with python

    Oct 6, 2016 · Alternatively, you can also switch the turtle to use radians via turtle.radians() and then calculate math.cos(math.pi / 4) – cdlane Commented Oct 6, 2016 at 22:28

  4. drawing triangles with python's turtle graphic - DaniWeb …

    Aug 8, 2012 · There will be either 0 triangles, 1 triangle, 2 triangles or an infinite number of triangles – you program must determine which possibility. Classify the type of triangle (right …

  5. python - How to draw any right angled triangle with turtle …

    Oct 9, 2021 · How to draw a tiled triangle with python turtle. 0. Filling triangles in Python (Turtle) 1.

  6. python - Sierpinski triangle recursion using turtle graphics - Stack ...

    Oct 17, 2016 · I am trying to write a program that draws a sierpinski tree with python using turtle. Here is my idea: import turtle def draw_sierpinski(length,depth): window = turtle.Screen() t = …

  7. turtle triangles, and user input. python 3 - Stack Overflow

    Oct 18, 2015 · turtle.begin_fill() draw_triangle(size) turtle.end_fill() Note in the documentation for fillcolor() that if you call it without arguments, it actually returns the current fill color. Not what …

  8. python - Turtle make triangle different color - Stack Overflow

    Mar 12, 2015 · Although turtle does not support transparency, we can still do some color mixing in Python rather than hardcode "yellow": from operator import add RED = (1.0, 0.0, 0.0) GREEN …

  9. turtle graphics - Python Sierpinski Triangle - Stack Overflow

    Jan 24, 2017 · In other words, make this your draw_triangle function: def draw_triangle(some_turtle): #This for loop will create - Outer Triangle …

  10. Drawing a 3D multicolor triangle in python turtle - Stack Overflow

    Oct 24, 2021 · How to draw a tiled triangle with python turtle. 0. Filling triangles in Python (Turtle) 1.

Refresh