Post Reply 
How to use graphic.draw_filled_polygon?
11-29-2021, 12:42 AM
Post: #9
RE: How to use graphic.draw_filled_polygon?
(09-04-2021 07:43 PM)jfelten Wrote:  
(08-31-2021 08:01 PM)albud44 Wrote:  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
Just a thought, if it can't convert tuple to int, is it expecting #nnn for colour instead of (255 255 255)?

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website 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? - StephenG1CMZ - 11-29-2021 12:42 AM



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