From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12289 invoked from network); 20 Nov 2023 19:47:07 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 20 Nov 2023 19:47:07 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 30FE74839B8 for ; Mon, 20 Nov 2023 20:46:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rZeNdr715Vb6 for ; Mon, 20 Nov 2023 20:46:05 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0A1654839A3 for ; Mon, 20 Nov 2023 20:43:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C1B5748035B for ; Mon, 20 Nov 2023 20:42:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cYd2nlludhMS for ; Mon, 20 Nov 2023 20:42:57 +0100 (CET) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 30F0F48014B for ; Mon, 20 Nov 2023 20:42:57 +0100 (CET) Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-7781bc3783fso310955485a.1 for ; Mon, 20 Nov 2023 11:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700509375; x=1701114175; darn=ntg.nl; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=xe9asBwQymBq+fRxnMTlIEEIC/6YTlz+EXhYhpVm0ZQ=; b=lgRr6KznWewasn/CFKmCdDg2Z0NghRzDI/TSoXSxNPWDJoN0C3ZZUJhJFAUkUVJIaR j7gezrXMdGsLNh6Kh9ZaW5qUzYdzgeIScvJszZF07KoW9BJIWOvqFmUa3jfW6q3o5h+B HwxFTCP/MST4B6XgOb4SlLMJmcXHNW8fvTAyW572OAAowp7YrHFmu1L0R0/MSu2s5bnE j8dHciyy36Rl6ncKTeKqV9d26OftX2h57zoi7Zg9vdnSZt7YY1zKFzp56YDNBPEzbcWS MkWSmXdnvGrwmsvVQR5cX4sHYNGLaE506i5rBBTGgdnf4Gy9d3jB/ZZ4/E6ga5uMigw9 aG+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700509375; x=1701114175; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xe9asBwQymBq+fRxnMTlIEEIC/6YTlz+EXhYhpVm0ZQ=; b=b5AWqvr3w/soXYNkVfBNXvyksy+UyGR627j2ezFH/P1GHlPV1YbwFRcG89wG3IcDL7 FjcuCzZs7bClvOpFgTKAzglH//RBafvhMZ4tOH/Vib7FneGBFXvu5mfc49F7vZ1YjPUE Grergj79gQ7g61mXsRmTfcyxDWauOrVpXVAKZEW8mM4iJX67E6DFg9oRDV38dX2fvKDR 4HrsavUchK1eOvzGmOVD9r9LEhKhoYcI3td6SSLi4OiOy5XaXUzEYW/0Xk/W6MaIMd2d lPXo+FNtyth5tvHHE1OA1qSv9jjctudKv2SjdLjKIziXnKmJrmZBy3I9YTxx7brw98Cn mTkQ== X-Gm-Message-State: AOJu0YzebmwIYBs+gD19BLiP/ENfUMU9UspT4fdFIClZWRfuyxfKo29S dL0llyni4SDx4OldHOhUsyaKpjpxU+U= X-Google-Smtp-Source: AGHT+IGrYfx1pBmz8dfc3T/5OGu1vMyF5+IjCx/dfvZA6tIHPLyhaFWmHJiBH4bdbqflsk+U3iNYYA== X-Received: by 2002:a05:620a:5639:b0:76f:d65:af24 with SMTP id vv25-20020a05620a563900b0076f0d65af24mr9978661qkn.27.1700509375302; Mon, 20 Nov 2023 11:42:55 -0800 (PST) Received: from smtpclient.apple ([132.208.146.136]) by smtp.gmail.com with ESMTPSA id vv19-20020a05620a563300b0076ce061f44dsm2905692qkn.25.2023.11.20.11.42.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2023 11:42:54 -0800 (PST) From: Fabrice L Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Date: Mon, 20 Nov 2023 14:42:44 -0500 References: <53C67687-3050-4694-A443-D683EF98ABDB@gmail.com> To: mailing list for ConTeXt users In-Reply-To: Message-Id: <9DF71200-711B-4124-9CE6-E3CCE24421BB@gmail.com> X-Mailer: Apple Mail (2.3731.700.6) Message-ID-Hash: WH6LO7PHGZPLW24DA5KZLL3TCBCIFXVR X-Message-ID-Hash: WH6LO7PHGZPLW24DA5KZLL3TCBCIFXVR X-MailFrom: fabrice.alpha@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Strange behavior with anglestriped() List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============1393587102672174886==" --===============1393587102672174886== Content-Type: multipart/alternative; boundary="Apple-Mail=_FD569129-1BA0-4E01-95F0-D165B14D98DF" --Apple-Mail=_FD569129-1BA0-4E01-95F0-D165B14D98DF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Fabrice, you have a problem with the definition of the path b: this path = include q and b. To see this, replace your lines with : draw q anglestriped (1,45,2) withcolor cyan; draw b anglestriped (1,45,2) withcolor red; And you will see that the path b is drawn twice : once in red, once in = cyan. So if you change your instructions to : draw q anglestriped (1,45,2) withcolor cyan; draw r anglestriped (1,45,2) withcolor cyan; This will correct the problem, because each path is now drawn only once.=20= Fabrice.=20 > Le 20 nov. 2023 =C3=A0 14:47, Fabrice Couvreur = a =C3=A9crit : >=20 > Hi Otared, > It's true that the color seems identical. > Thanks. > Fabrice >=20 > Le dim. 19 nov. 2023 =C3=A0 21:55, Otared Kavian > a =C3=A9crit : >> Hi Fabrice, >>=20 >> It seems to me the colors are the same, although they may appear = different at first sight because the =C2=AB with =C2=BB of the lines are = different (the width is larger in the lower rectangle). >>=20 >> I attach the PDF created with your code. >>=20 >> Best regards: Otared >>=20 >>=20 >>=20 >>> On 19 Nov 2023, at 18:56, Fabrice Couvreur = > = wrote: >>>=20 >>> Hi, >>> I don't understand why the hatching of the two rectangles is not the = same color.=20 >>> Thanks for your help. >>> Fabrice >>>=20 >>> \starttext >>> \setupbodyfont[8pt] >>> \startMPcode >>> path p, q, r, b ; >>> =20 >>> z[0] =3D (2cm,0cm) ; >>> z[1] =3D (2cm,2cm) ; >>> z[2] =3D (0cm,2cm) ; >>>=20 >>> p :=3D unitsquare xyscaled (9cm, 5cm) ; >>> q :=3D llcorner p--z[0]--z[1]--z[2]--cycle ; >>> r :=3D unitsquare xyscaled (7cm,3cm) shifted(2cm,2cm) ; >>> b :=3D z[2]--z[1]--ulcorner r--urcorner p--lrcorner = r--z[1]-- >>> z[0]--llcorner p--cycle ; >>> =20 >>> =20 >>> draw b anglestriped (1,45,2) withcolor cyan; >>> draw q anglestriped (1,45,2) withcolor cyan; >>> =20 >>> draw p ; >>> =20 >>> label.llft("A", p) ; >>> label.lrt("D", p) ; >>> label.ulft("B", p) ; >>> label.urt("C", p) ; >>> label.lft("M", z[2]) ; >>> label.ulft("N", z[1]) ; >>> label.bot("P", z[0]) ; >>> label.top("J", ulcorner r) ; >>> label.rt("I", lrcorner r) ; >>> label.bot(btex $x$ etex,(llcorner p+z[0])/2); >>> label.lft(btex $x$ etex,(llcorner p+z[2])/2); >>> \stopMPcode >>>=20 >>> \stoptext >>>=20 >>> = __________________________________________________________________________= _________ >>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>=20 >>> maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >>> webpage : https://www.pragma-ade.nl / = https://context.aanhet.net (mirror) >>> archive : https://github.com/contextgarden/context >>> wiki : https://wiki.contextgarden.net = >>> = __________________________________________________________________________= _________ >>=20 >> Otared Kavian >> e-mail: otared@gmail.com >> Phone: +33 6 88 26 70 95 >>=20 >>=20 >>=20 >>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / = https://context.aanhet.net (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.contextgarden.net = >> = __________________________________________________________________________= _________ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net = (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_FD569129-1BA0-4E01-95F0-D165B14D98DF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Fabrice, you have a problem = with the definition of the path b: this path include q and b. To see = this, replace your lines with :

  =          draw q anglestriped (1,45,2) withcolor = cyan;
           draw b = anglestriped (1,45,2) withcolor red;

And you = will see that the path b is drawn twice : once in red, once in cyan. So = if you change your instructions to = :

          =  draw q anglestriped (1,45,2) withcolor cyan;
  =          draw r anglestriped (1,45,2) withcolor = cyan;

This will correct the problem, = because each path is now drawn only = once. 

Fabrice. 

Le 20 nov. 2023 =C3=A0 14:47, Fabrice Couvreur = <fabrice1.couvreur@gmail.com> a =C3=A9crit :

Hi = Otared,
It's true that the color seems = identical.
Thanks.
Fabrice

Le dim. = 19 nov. 2023 =C3=A0 21:55, Otared Kavian <otared@gmail.com> a = =C3=A9crit :
Hi Fabrice,

It seems to me the colors = are the same, although they may appear different at first sight because = the =C2=AB with =C2=BB of the lines are different (the width is larger = in the lower rectangle).

I attach the PDF = created with your code.

Best regards: = Otared



On 19 Nov = 2023, at 18:56, Fabrice Couvreur <fabrice1.couvreur@gmail.com> = wrote:

Hi,
I don't understand why = the hatching of the two rectangles is not the same = color. 
Thanks for your = help.
Fabrice

\starttext
    =     \setupbodyfont[8pt]
        = \startMPcode
           path p, q, r, b = ;
         
        =    z[0] =3D (2cm,0cm) ;
          =  z[1] =3D (2cm,2cm) ;
          =  z[2] =3D (0cm,2cm) ;

          =  p :=3D unitsquare xyscaled (9cm, 5cm) ;
      =      q :=3D llcorner p--z[0]--z[1]--z[2]--cycle = ;
           r :=3D unitsquare xyscaled = (7cm,3cm) shifted(2cm,2cm) ;
          =  b :=3D z[2]--z[1]--ulcorner r--urcorner p--lrcorner = r--z[1]--
           z[0]--llcorner = p--cycle ;
           
    =      
           draw b = anglestriped (1,45,2) withcolor cyan;
        =    draw q anglestriped (1,45,2) withcolor cyan;
  =          
          =  draw p ;
           
  =          label.llft("A", p) ;
    =        label.lrt("D", p) ;
      =      label.ulft("B", p) ;
        =    label.urt("C", p) ;
          =  label.lft("M", z[2]) ;
          =  label.ulft("N", z[1]) ;
          =  label.bot("P", z[0]) ;
          =  label.top("J", ulcorner r) ;
          =  label.rt("I", lrcorner r) ;
          =  label.bot(btex $x$ etex,(llcorner p+z[0])/2);
    =        label.lft(btex $x$ etex,(llcorner = p+z[2])/2);
        = \stopMPcode

\stoptext

= __________________________________________________________________________= _________
If your question is of interest to others as well, please = add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl=
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive =  : https://github.com/contextgarden/context
wiki =     : https://wiki.contextgarden.net
__________________= _________________________________________________________________

Otared = Kavian
Phone: +33 6 88 = 26 70 95



=
__________________________________________________________= _________________________
If your question is of interest to others as well, please add an entry = to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl=
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
= __________________________________________________________________________= _________
= __________________________________________________________________________= _________
If your question is of interest to others as well, please = add an entry to the Wiki!

maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage =  : https://www.pragma-ade.nl / https://context.aanhet.net = (mirror)
archive  : = https://github.com/contextgarden/context
wiki =     : = https://wiki.contextgarden.net
________________________________________= ___________________________________________
= --Apple-Mail=_FD569129-1BA0-4E01-95F0-D165B14D98DF-- --===============1393587102672174886== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============1393587102672174886==--