News

With a Python function call: by generating lots of coordinates and feeding them to your “draw triangle” function. The latter is far more efficient, requires less code, ...
In Python, the mere act of making a function call incurs a relatively large amount of overhead. If some function is called repeatedly in a tight loop, even if it isn’t a long-running function ...