From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Strange behavior with anglestriped()
Date: Sun, 19 Nov 2023 17:56:52 +0000 [thread overview]
Message-ID: <CACyK-epXrQzpNKc9gSrpfvmT7uQbmZSg3LWDBuEXG+h_b9WwFw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1162 bytes --]
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] = (2cm,0cm) ;
z[1] = (2cm,2cm) ;
z[2] = (0cm,2cm) ;
p := unitsquare xyscaled (9cm, 5cm) ;
q := llcorner p--z[0]--z[1]--z[2]--cycle ;
r := unitsquare xyscaled (7cm,3cm) shifted(2cm,2cm) ;
b := 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
[-- Attachment #1.2: Type: text/html, Size: 1915 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2023-11-19 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-19 17:56 Fabrice Couvreur [this message]
2023-11-19 21:54 ` [NTG-context] " Otared Kavian
2023-11-20 19:47 ` Fabrice Couvreur
2023-11-20 19:42 ` Fabrice L
2023-11-21 19:06 ` Fabrice Couvreur
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACyK-epXrQzpNKc9gSrpfvmT7uQbmZSg3LWDBuEXG+h_b9WwFw@mail.gmail.com \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).