Post Reply 
How to use graphic.draw_filled_polygon?
09-04-2021, 07:43 PM
Post: #5
RE: How to use graphic.draw_filled_polygon?
(08-31-2021 08:01 PM)albud44 Wrote:  
(08-26-2021 02:50 AM)jfelten Wrote:  So I did manage to find the official documentation for this library after digging through TI Planet forums a bit, and I found out the the correct syntax was
Code:
draw_filled_polygon([[x1, y1], [x2, y2], ..., [xn, yn]], couleur)
although whenever I try that, it crashes the calculator. Is this a bug with the python interpreter or is it just picky about which values or how many values I use?

Hello,

Sorry, in french, m'y english is little.

Et avec couleur=(r,g,b) ?

Ça donne quoi ?

Here is what I got:
Code:
>from graphic import *
>draw_filled_polygon([[0,0],[0,240],[160,120]],(0,0,0))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can't convert tuple to int
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to use graphic.draw_filled_polygon? - jfelten - 09-04-2021 07:43 PM



User(s) browsing this thread: 2 Guest(s)