• What for is the style 'miter' for lines?

    From Helmut Giese@21:1/5 to All on Mon Apr 29 22:47:50 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From greg@21:1/5 to All on Mon Apr 29 23:29:36 2024
    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)
  • From Helmut Giese@21:1/5 to All on Wed May 1 17:15:01 2024
    Hi Greg,
    thanks for the example - now everything is clear.
    I had myself written several tests but seeing your example I realized
    that I had fooled myself - and then had kept testing in the wrong
    direction.
    Thanks again
    Helmut

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)