Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You fill a much-needed gap.


comp / comp.lang.tcl / What for is the style 'miter' for lines?

SubjectAuthor
* What for is the style 'miter' for lines?Helmut Giese
`* Re: What for is the style 'miter' for lines?greg
 `- Re: What for is the style 'miter' for lines?Helmut Giese

1
Subject: What for is the style 'miter' for lines?
From: Helmut Giese
Newsgroups: comp.lang.tcl
Organization: ratiosoft
Date: Mon, 29 Apr 2024 20:47 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: What for is the style 'miter' for lines?
Date: Mon, 29 Apr 2024 22:47:50 +0200
Organization: ratiosoft
Lines: 6
Message-ID: <0c103j9vl3v32e4lcc433f0mj1ai59cctc@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 29 Apr 2024 22:47:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ce707e1d0b0b2486d0d1114e8a4284d4";
logging-data="2073663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184tl2C1vzShp/O0ps3Lbws"
Cancel-Lock: sha1:l1+RNsIZtmdTk3gpI+H843IaXiQ=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
View all headers

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

Subject: Re: What for is the style 'miter' for lines?
From: greg
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 29 Apr 2024 21:29 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: gregor.ebbing@gmx.de (greg)
Newsgroups: comp.lang.tcl
Subject: Re: What for is the style 'miter' for lines?
Date: Mon, 29 Apr 2024 23:29:36 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <v0p3g0$1voes$1@dont-email.me>
References: <0c103j9vl3v32e4lcc433f0mj1ai59cctc@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 29 Apr 2024 23:29:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2f3970681de8a577714720ddfaf943ed";
logging-data="2089436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IkZbny09RBeZF1H8e4Eiba1crXtns/C8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:n9KsAMyoLhdZsd/kLMa/UtteBDE=
Content-Language: de-DE
In-Reply-To: <0c103j9vl3v32e4lcc433f0mj1ai59cctc@4ax.com>
View all headers

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

Subject: Re: What for is the style 'miter' for lines?
From: Helmut Giese
Newsgroups: comp.lang.tcl
Organization: ratiosoft
Date: Wed, 1 May 2024 15:15 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: comp.lang.tcl
Subject: Re: What for is the style 'miter' for lines?
Date: Wed, 01 May 2024 17:15:01 +0200
Organization: ratiosoft
Lines: 8
Message-ID: <jqm43jhjv36ski6bovtv6osm49eb2e4go6@4ax.com>
References: <0c103j9vl3v32e4lcc433f0mj1ai59cctc@4ax.com> <v0p3g0$1voes$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 01 May 2024 17:14:57 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7b0b1c80e82ed2d837805d5f2b46551c";
logging-data="3402840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KKCu0YBJod/wTazKVHEDu"
Cancel-Lock: sha1:iMqet9DidUqdd7tuWUcvESL0Dgs=
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
View all headers

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

1

rocksolid light 0.9.8
clearnet tor