Re: canvas overlapping bug?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: canvas overlapping bug?

From: Aleks <vuje@ifg.uni-hannover.de>
Date: Thu Dec 01 2005 - 11:34:12 CET

Andreas Leitgeb schrieb:
> Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> wrote:
>
>>Aleks <vuje@ifg.uni-hannover.de> wrote:
>>
>>>I've noticed following behaviour with canvas overlapping which is at
>>>least unexpected to me.
>>>.c create oval 100 100 100 100 -outline red
>>
>>strangely, some other coordinates that I thought
>>would have to ly on the oval didn't, not even
>>when I used a filled oval.
>
>
> I should have tried a little more:
> obviously the oval has its center on 100 100,
> and its exact bounding rect is: 99.5 99.5 100.5 100.5
> Since it was originally not filled, the exact center
> wasn't part of it.
>

I'm still not happy ;-)

Try this:
.c oval 100 100 100 100 -width 50
.c line 100 100 100 100 -width 50 -capstyle round
.c find overlapping 95 95 95 95

You'll get only the line.
Received on Sat Dec 3 03:28:36 2005