alpha blend in tkinter Canvas
Joal Heagney
s713221 at student.gu.edu.au
Sat Jul 21 05:05:50 EDT 2001
Phlip wrote:
>
> Hypo Nt:
>
> If I have a tkinter Canvas, how do I paint in an object that "blends" with
> the color under it, instead of just jamming its own color in?
>
> --
> Phlip phlip_cpp at my-deja.com
> ============ http://c2.com/cgi/wiki?PhlIp ============
> -- All sensors report Patti having a very good time --
Parts of certain Tkinter Canvas objects can be created using None as a
colour, if say you want a black rectangle outline but not a colour fill.
import Tkinter
root = Tkinter.Tk()
c = Tkinter.Canvas(root,background='white'); c.pack(fill='both')
c.create_line(10,10,100,100,fill='red')
c.create_rectangle(20,20,90,90, fill = None, outline='black')
Was this what was required?
--
Joal Heagney is: _____ _____
/\ _ __ __ _ | | _ ___ |
/__\|\ || ||__ |\ || |___|/_\|___] |
/ \ \_||__ ||___| \_|! | | \ \ !
More information about the Python-list
mailing list