Let's find out!  This program creates a series of rectangles, with the color
going from black to nearly white.  White corresponds to higher x and y
coordinate values.  So the answer to your question can be seen in the output
of the program.

import Tkinter

c = Tkinter.Canvas(width=220, height=220)
c.pack()

for i in range(0, 200, 20):
        lum = i * 255 / 200
        color = "#%02x%02x%02x" % (lum, lum, lum)
        c.create_rectangle( i, i, i+40, i+40, fill=color)

c.mainloop()

Attachment: pgpSbn6OJyaNx.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to