draw_triangle.py

Created by fime

Created on November 12, 2025

709 Bytes

draw_triangle that draw a triangle.

Usage :

draw_triangle(

px = [x1, x2, x3], #the points x positions (must be a list)

py=[y1, y2, y3], # the points y positions (must be a list)

c = (r, v, b), # the color of the triangle

step = 1 ) # the step, must be higher or equal to 1 (for a full filling), if it is greater than one the triangle will be hatched.


During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.