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 9012 invoked from network); 20 Nov 2023 18:51:48 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 20 Nov 2023 18:51:48 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4750C4839F1 for ; Mon, 20 Nov 2023 19:49:53 +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 eMIhUGo5e3CM for ; Mon, 20 Nov 2023 19:49:52 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2E21E483B46 for ; Mon, 20 Nov 2023 19:48:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E26254836B1 for ; Mon, 20 Nov 2023 19:47:40 +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 4Kh9WcnwqaFm for ; Mon, 20 Nov 2023 19:47:39 +0100 (CET) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 AA35048363B for ; Mon, 20 Nov 2023 19:47:39 +0100 (CET) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5480edd7026so6056813a12.0 for ; Mon, 20 Nov 2023 10:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700506059; x=1701110859; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=J1EqLZSS09xb20saYqkVSI6k6JpH8ITtkYs4yMxyVeQ=; b=iPuvzdeHUgHXDeHblUGFHH/In0/gyPfwsz7PJrZcU/duGZpZiJQ5hQksaBSDDMrIwm +ms9iAkoqZFqPeTnRAUQLm13v2XOyBg/rqYB0SIvD9lt9VVUAKRoWlPQKkT0fi7SDOXZ 1uQbMbGuHmryKOe5BY5cic2ulLdsYXQk3HxKwjgFRLY05RQH86WUi6EU8Q6f9oe9Bngk FXmJDoFOa/G3rH79ZCpjW6WuzTFHwNaur6Nm7I+RN05hO7AxpajEO4lXpgGK9RLAdmTg T3i+86ZNHNx3oOphbI/vhdre1ln9YSkG64L3Yux481kwumLc3GWewVIKtIMTKRAzyeDe bB2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700506059; x=1701110859; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J1EqLZSS09xb20saYqkVSI6k6JpH8ITtkYs4yMxyVeQ=; b=dbpXnmPdraPftc2CIhG1Z01q5YyDhEEPtyhbMkA6OleQk9XIPFKTZ8cRoF9ewXWq/P zy0p/XGQREdLpVmNeUkocSKu7W/G8CC/eeKfxtxA2O89p3sxHi6/Yp4m1PBMoYXm+8S1 Xxql+GvoFTtc87aNIxG071rYa8dyw+nhua08gPZFN0YWvTj6OKlLlWB7kIRQHaSi/KyO 6Rj91S/bw2kD0I+efyOcUd46pJh8nEnpyeT9EcNnG4+kK3PH2xc5nxOdYQOgYATBkZvD L2WMlsC08ByPmwL2ynEs8kCkSgnpBomfnv2t7B/COB801B0rJ0wXuu1gTbiTdLNQLxiF zvDw== X-Gm-Message-State: AOJu0YxALkKyJtOhgpfMUMafAk7f9iYJgrjzuzjnXIdo5LJiNgZAAp0b vCnwxHocSN+uySjznOAK8/GhEKfLxHyArsUHIPtWtKmgnR3DRw== X-Google-Smtp-Source: AGHT+IEbFlSYI3wOEc6kHrpvsL0B+ZDdl9PkW3Nu61ic3k5gwzI84Ql451+JIyOj6GlA7Js9loAisQZcoQgayXCGz1M= X-Received: by 2002:aa7:da4d:0:b0:53e:782f:cfa6 with SMTP id w13-20020aa7da4d000000b0053e782fcfa6mr170655eds.37.1700506058726; Mon, 20 Nov 2023 10:47:38 -0800 (PST) MIME-Version: 1.0 References: <53C67687-3050-4694-A443-D683EF98ABDB@gmail.com> In-Reply-To: <53C67687-3050-4694-A443-D683EF98ABDB@gmail.com> From: Fabrice Couvreur Date: Mon, 20 Nov 2023 19:47:27 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: OOEQV754SJKKJZCGUZ7YM44PDH7NKW43 X-Message-ID-Hash: OOEQV754SJKKJZCGUZ7YM44PDH7NKW43 X-MailFrom: fabrice1.couvreur@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="===============3258732980943864153==" --===============3258732980943864153== Content-Type: multipart/alternative; boundary="000000000000919fcd060a99eb6a" --000000000000919fcd060a99eb6a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Otared, It's true that the color seems identical. Thanks. Fabrice Le dim. 19 nov. 2023 =C3=A0 21:55, Otared Kavian a =C3= =A9crit : > Hi Fabrice, > > It seems to me the colors are the same, although they may appear differen= t > 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 > 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 > e-mail: otared@gmail.com > 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 > > _________________________________________________________________________= __________ > --000000000000919fcd060a99eb6a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Otared,
It's true that the color seems identical.
= Thanks.
Fabrice

Le=C2=A0dim. 19 nov. 2023 =C3=A0=C2=A021:55, Otare= d Kavian <otared@gmail.com> a= =C3=A9crit=C2=A0:
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 att= ach the PDF created with your code.

Best regards: = Otared



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

<= div>
Hi,
I don't understand why the hatching of the two r= ectangles is not the same color.=C2=A0
Thanks for your help.
Fabrice
\starttext
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \setupbodyfont[8pt]
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 \startMPcode
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0path p, q, r, b ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0z[0] =3D (2cm,0cm) ;
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0z[1] =3D (2cm,2cm) ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0z[2] =3D (0cm,2cm) ;

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0p :=3D unitsquare xyscaled (9cm, 5cm) ;
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0q :=3D llcorner p--z[0]--z[1]--z[2]--cycle ;
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r :=3D unitsquare xyscaled (7cm,3cm) shifted= (2cm,2cm) ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0b :=3D z[2]--z[1]--= ulcorner r--urcorner p--lrcorner r--z[1]--
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0z[0]--llcorner p--cycle ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0draw b anglestriped (1,45,2) withcolor cyan;
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draw q anglestriped (1,45,2) withcolor cy= an;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0draw p ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.llft("A", p) ;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.lrt("D", p) ;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.ulft("B", p) ;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.urt("C", p) ;
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.lft("M", z[2]) ;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.ulft("N", z[1]) = ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.bot("P", z[0]= ) ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.top("J", ul= corner r) ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.rt("I&qu= ot;, lrcorner r) ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0label.bot(bt= ex $x$ etex,(llcorner p+z[0])/2);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0label.lft(btex $x$ etex,(llcorner p+z[2])/2);
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 \stopMPcode

\stoptext

___________________________________________________________________________= ________
If your question is of interest to others as well, please add a= n entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.nt= g.nl/mailman3/lists/ntg-context.ntg.nl
webpage =C2=A0: https://www.pragma-ade.nl / = https://context.aa= nhet.net (mirror)
archive =C2=A0: https://github.com/contextgarden/conte= xt
wiki =C2=A0=C2=A0=C2=A0=C2=A0: https://wiki.contextgarden.net
__________= _________________________________________________________________________

Otared Kavian
P= hone: +33 6 88 26 70 95




___________________________________________________________= ________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________
--000000000000919fcd060a99eb6a-- --===============3258732980943864153== 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 ___________________________________________________________________________________ --===============3258732980943864153==--