Am 29.04.24 um 22:47 schrieb Helmut Giese:
Hello out there,
Tk lines have an option -joinstyle which can be either round, bevel or
miter. I see the effect of 'round' but neither for 'butt' nor 'miter'.
If possible, please point me to an example.
Thanks
Helmut
#a example:
package require Tk
pack [canvas .c -width 400 -height 400]
#Round Join
#This setting produces rounded corners at the vertices of the line.
.c create line 50 50 150 150 250 50 -width 10 -joinstyle round -fill blue
#Bevel Join
#This setting creates a beveled or chopped-off look at the corners
#by connecting the endpoints of the segments with a straight line
.c create line 50 100 150 200 250 100 -width 10 -joinstyle bevel -fill red
#Miter Join
#This setting extends the outer edges of the lines until they meet at a
point,
#creating a sharp corner.
.c create line 50 150 150 250 250 150 -width 10 -joinstyle miter -fill green
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)