[Image-SIG] can't draw a simple point or line! help please

Jim Tittsler jwt-python@dskk.co.jp
Fri, 9 Jun 2000 08:33:19 +0900

On Fri, Jun 09, 2000 at 01:13:21AM +0200, Harald Ragger wrote:
> When drawing a rectangle theres no problem. but when i try to draw a point
> or a simple line, I always get errors.
> draw.rectangle([0, 0, size, size], fill=bgcolor, outline=color)
> draw.point(20, 20, fill=bgcolor)

The first argument to point should be a list of tuples or numeric values
(just as you used a sequence of numeric values for rectangle).  Try:
draw.point([20,20], fill=bgcolor)
It makes it easy to draw many points at once.

Jim Tittsler, Tokyo
Python Starship     http://starship.python.net/crew/jwt/