Re: XOR drawing on Tk canvas?
From: Donald Arseneau (asnd_at_triumf.ca)
Date: 01/28/04
- Next message: Donald Arseneau: "Re: starting procedures in background"
- Previous message: dan: "Freewrap Broken on Windows?"
- In reply to: Jeff Hobbs: "Re: XOR drawing on Tk canvas?"
- Next in thread: Xavier Matia Bernasconi: "Re: XOR drawing on Tk canvas?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Jan 2004 15:08:48 -0800
Jeff Hobbs <jeffh@activestate.com> writes:
> Jason Harper wrote:
> > What I REALLY want is a "color blend" drawing mode, so I could subtly
> > tint the desired squares. But it's hard to imagine a toolkit that has
> > that, but not the more basic XOR mode.
>
> Aha! That, Tk has, as of 8.4.5 (most recent stable) in a limited
> fashion. It supports transparency in images, so you could have
> semi-transparent PNG images (use the Img extension to get the
> extra image formats).
To clarify: you do not need separate images for every map square;
just an image of a plain colored square, with a transparency level.
Place this image (repeatedly) over the parts of the map needing
highlighing.
Donald Arseneau asnd@triumf.ca
- Next message: Donald Arseneau: "Re: starting procedures in background"
- Previous message: dan: "Freewrap Broken on Windows?"
- In reply to: Jeff Hobbs: "Re: XOR drawing on Tk canvas?"
- Next in thread: Xavier Matia Bernasconi: "Re: XOR drawing on Tk canvas?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|