you need to quote the RGB,
Image.new("RGB", (600, 600), (250, 250, 400))

On Tue, Nov 6, 2012 at 11:59 AM, Abha Agrawal <[email protected]> wrote:
> When I run the follwing code:
>
> from PIL import Image
> Image.new(RGB, (600, 600), (250, 250, 400))
>
> it returns
> NameError: name 'RGB' is not defined
>
> Please advise.
>
> _______________________________________________
> Image-SIG maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to