About 51 results
Open links in new tab
  1. python - What is the easiest way to make a triangles - Stack …

    Jul 28, 2021 · return Triangle(sp1, sp2, sp3) One limitation is that it can only make equilateral triangle, but its easy enough to modify the function to remove this limitation. You could take …

  2. python 3.x - How to draw a triangle using matplotlib.pyplot based …

    Jun 6, 2017 · How to draw a triangle using matplotlib.pyplot based on 3 dots (x,y) in 2D? Asked 8 years, 4 months ago Modified 8 years, 4 months ago Viewed 53k times

  3. image - how to draw a triangle with PIL? - Stack Overflow

    Jul 17, 2018 · how to draw a triangle with PIL? Asked 7 years, 3 months ago Modified 7 years, 3 months ago Viewed 11k times

  4. How to Draw a triangle shape in python? - Stack Overflow

    Apr 22, 2014 · I want to draw the shape of a triangle using python. I have already drawn the shape of circle but I cannot draw the triangle. Could someone please help me with this? This is …

  5. python - How to draw right side up triangle recursively with ONE ...

    May 2, 2022 · Write a recursive function called draw_triangle () that outputs lines of *'s to form a right side up isosceles triangle. Function draw_triangle () has one parameter, an integer …

  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. python - How to draw a right angle triangle using tkinter ... - Stack ...

    Oct 5, 2020 · I'm trying to draw a right angle triangle with tkinter. I can't figure out how to do it, I can do a rectangle and then another one but I cant get the second rectangle to be a triangle. …

  8. python - Triangle Filling in opencv - Stack Overflow

    Aug 16, 2018 · We have Rectangle fillings , circle and ellipse filling in opencv, but can anyone say how to fill a triangle in an image using opencv ,python.

  9. python - Draw Triangle by turtle - Stack Overflow

    Jun 23, 2020 · Looks like you took step 2, without taking step 1. I would suggest learn basic python control structures and data structures to understand the programs. If you insist on …

  10. How to create a Triangle shaped drawing from my variables in …

    Oct 7, 2013 · The problem was : Given 3 numbers determine if they can form a triangle and if yes calculate the Perimeter and Area,draw the Triangle afterwards. I have managed to calculate …