How to use graphic.draw_filled_polygon?
09-04-2021, 08:53 PM (This post was last modified: 09-04-2021 09:44 PM by Guenter Schink.)
Post: #6
 Guenter Schink Senior Member Posts: 477 Joined: Dec 2013
RE: How to use graphic.draw_filled_polygon?
(09-04-2021 07:43 PM)jfelten Wrote:  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

That's weird! The following code works on the virtual Prime and on the G1, but crashes the G2
Code:
>from graphic import * >draw_filled_polygon([[0,0],[0,240],[160,120]],0xff)
gives a nice blue triangle.

"draw_polygon" however works as expected. When I was working on my "Mandelbrot Explorer" I tried a lot with the "graphic" module but gave up. It was completely useless.

Günter

Where did you find the documentation?
 « Next Oldest | Next Newest »

 Messages In This Thread How to use graphic.draw_filled_polygon? - jfelten - 08-23-2021, 08:09 PM RE: How to use graphic.draw_filled_polygon? - pol95 - 08-26-2021, 02:23 AM RE: How to use graphic.draw_filled_polygon? - jfelten - 08-26-2021, 02:50 AM RE: How to use graphic.draw_filled_polygon? - albud44 - 08-31-2021, 08:01 PM RE: How to use graphic.draw_filled_polygon? - jfelten - 09-04-2021, 07:43 PM RE: How to use graphic.draw_filled_polygon? - Guenter Schink - 09-04-2021 08:53 PM RE: How to use graphic.draw_filled_polygon? - StephenG1CMZ - 11-29-2021, 12:42 AM RE: How to use graphic.draw_filled_polygon? - Guenter Schink - 11-29-2021, 10:04 AM RE: How to use graphic.draw_filled_polygon? - toml_12953 - 11-29-2021, 02:22 PM RE: How to use graphic.draw_filled_polygon? - Guenter Schink - 11-29-2021, 08:40 PM RE: How to use graphic.draw_filled_polygon? - jfelten - 09-04-2021, 11:10 PM RE: How to use graphic.draw_filled_polygon? - Guenter Schink - 11-28-2021, 10:25 PM

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