There's more than one way to do things | |
PerlMonks |
Re^2: Tk geometry, pixel coordinates precision, canvas and outlineby Discipulus (Canon) |
on Apr 24, 2018 at 09:37 UTC ( [id://1213469]=note: print w/replies, xml ) | Need Help?? |
Thanks master tybalt89 for your insights,
Compare difference if you comment/uncomment -outline => undef in the following snippet:
With #-outline => undef , the black, 1px outline is shown in North and West sides but no in other ones. This seems to prove that the outline width is added to. By other hand with -outline => undef no red background in shown so the yellow square fills the correct 100x100 region. The weird part is that it seems that just first pixel is managed in this way, ie shifting the yellow square toward SE: infact using -width => 10 (the width of the outline!) the yellow square remains centerd..
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|