From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109982 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Problem with shading in Metafun (LMTX) Date: Sun, 20 Dec 2020 22:46:50 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4870554881541176621==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12428"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 21 04:47:35 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krCAY-00039i-EH for gctc-ntg-context-518@m.gmane-mx.org; Mon, 21 Dec 2020 04:47:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8E47E1C1537; Mon, 21 Dec 2020 04:47:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6mdDwwR2olG9; Mon, 21 Dec 2020 04:47:05 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7F6931C152F; Mon, 21 Dec 2020 04:47:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DA4AC1C152F for ; Mon, 21 Dec 2020 04:47:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GSq5R-UfUyzw for ; Mon, 21 Dec 2020 04:47:02 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.53; helo=mail-wr1-f53.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E77761C152E for ; Mon, 21 Dec 2020 04:47:02 +0100 (CET) Original-Received: by mail-wr1-f53.google.com with SMTP id m5so9572083wrx.9 for ; Sun, 20 Dec 2020 19:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pLFrms4iqwoVcwzawTlv2OQMlYbpULGXYUQw5yfyn1M=; b=WqhmCZXYrmLrKDTBHUnlonslspXEHJBkQCrudi5MsMZQayUtYhPp3XZIBunOXNOkJ/ aAnPssjR2g3HPRp4z8JncM41zJa/0GNNZItvWyXbKaynQBR0EXHHSTClrIOvz1NvkJNJ VXg4zPVGE6KFFBf53DOvd5ywEJO+UZScULKJcrVqEaXkCN8O7uK8s0tRtdSJiQkVddLD NVypy/AYHqTuJMKkWjx0DDlqlLDQSk51IJ3/nV/yGcM+c4hRZrihZzRgZjXwqQi9HstP 31gD0xkfg2gNNC6NdAev591e7laDozOUrh+UBhXWVjrL1GxjFrnIeE/GGtx7g2Om9Hs2 2wcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pLFrms4iqwoVcwzawTlv2OQMlYbpULGXYUQw5yfyn1M=; b=N9Rj4FxO+yRNOO3K9jPEdK0dCHhfLPIh+1S9EKtKpHRta2zcGwcnRqXFz1QdFwbTwz tkfDnxIjYoEarPDQQ/yvCvxThd3QDZamsYrWBVqWFM7h5Ebncv/7l7h4uPLk3z4bcO6J ycC/9kj0fF5ij10ydX9sEs3mhWeJoHYEAHplq1UdOV6cNFAo9Fv81x8vZWjLoAB1V/JV Mf1sOsPPMiffBjc7yu7KPuRSAPT15BwTXUpr5b4RYVXyomGfNJ7VAeZg4BQYpRZcx2GX OGKsymWQCbOFXEsKiU4WVSz8Um5xzo9PHcSR/8/zhLhKsOlthZOIwZQI6J7A3Mclm3hL dhcA== X-Gm-Message-State: AOAM532+oyk+cJOZ3Fjww340r0Xc26bFOg6gd8qVbD+BkgknwQtVCuKq WxAyzvShqM0UfK+o9Zoi2LAJ9Hh4GjJvrkDYtS3LRWOeiSZqhg== X-Google-Smtp-Source: ABdhPJzM4jDNmVkg+3WESCWIFMFqNdXRa9+KYBkYiT+Tat/ffi5BOergvAplYOC9D7Sv4cBWUsIp2jBoMzICZqxrMrQ= X-Received: by 2002:a5d:6a88:: with SMTP id s8mr16526152wru.118.1608522422327; Sun, 20 Dec 2020 19:47:02 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109982 Archived-At: --===============4870554881541176621== Content-Type: multipart/alternative; boundary="000000000000989c6505b6f14f8b" --000000000000989c6505b6f14f8b Content-Type: text/plain; charset="UTF-8" While shading works with MkIV, with LMTX the following breaks: \startMPpage comment("two shades with named colors"); fill fullcircle scaled 5cm withshademethod "circular" withshadecolors ((1,0,0),(0,0,1,0)) ; fill fullcircle scaled 5cm shifted (6cm,0) withshademethod "circular" withcolor (1,0,0,0) shadedinto "blue" ; \stopMPpage The log says: metafun > log > metafun > log > error: Unknown relation will be considered false metafun > log > metapost > log > metapost > log > metapost > log > : metapost > log > if(EXPR0)>temp_any_u: metapost > log > temp_any_u:=(EXPR0);fi ENDFOR metapost > log > max->begingroup.save.temp_any_u;if.pair(EXPR2):pair.temp_any_u.elseif.string(EXPR2): string.temp_any_u.fi ;temp_any_u=(EXPR2)for.i=(TEXT3):if.i>temp_any_u:temp_any_u:=i;fi.endfor metapost > log > .temp_any_u.endgroup metapost > log > mfun_max_radius->...er(EXPR2)-xpart.center(EXPR2))++(ypart.center(EXPR2)-ypart.lrcorner(EXPR2)),(xpart.urcorner(EXPR2)-xpart.center(EXPR2))++(ypart.urcorner(EXPR2)-ypart.center(EXPR2))) metapost > log > endgroup metapost > log > withshademethod->...cimal.center(EXPR0)withprescript"sh_center_b="&ddecimal.center(EXPR0)withprescript"sh_radius_a="&decimal0withprescript"sh_radius_b="&decimal.mfun_max_radius((EXPR0)) metapost > log > fi metapost > log > metapost > log > withprescript metapost > log > withshadecolors->...hprescript"sh_color_a_"&decimal.mfun_shade_step&"="&colordecimals(EXPR0)withprescript"sh_color_b_"&decimal.mfun_shade_step&"="&colordecimals(EXPR1)else:withprescript metapost > log > "sh_color=in... metapost > log > <*> comment("two shades with named colors"); fill fullcircle scaled 5cm withshademethod "circular" withshadecolors ((1,0,0),(0,0,1,0)) metafun > log > metafun > log > Oh dear. I can't decide if the expression above is positive, negative, or zero. So this comparison test won't be 'true'. metafun > log > metapost > log > ; fill fullcircle scaled 5cm shifted (6cm,0) withshademethod "... metapost > log > Hans told me not to use the B tag, so I'm asking first in case I've missed something. Thank you in advance. Best regards, Jairo --000000000000989c6505b6f14f8b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

While shading = works with MkIV, with LMTX the following breaks:


\startMPpage

comment("= two shades with named colors");

fill fullcircl= e scaled 5cm

withshademetho= d "circular"

withshadecolor= s ((1,0,0),(0,0,1,0))

;

fill fullcircl= e scaled 5cm shifted (6cm,0)

withshademetho= d "circular"

withcolor (1,0= ,0,0) shadedinto "blue"

;

\stopMPpage

The l= og says:

metafun = > log >

metafun = > log > error: Unknown relation will be considered false

metafun = > log >

metapost = > log >

metapost = > log > <to be read again>

metapost = > log > :

metapost = > log > <for(100.21985)> if(EXPR0)>temp_any_u:

metapost = > log > temp_any_u:=3D(EXPR0)= ;fi ENDFOR

metapost = > log > max->begingroup.save.temp_any_u;if.pair(EXPR2):pair.temp= _any_u.elseif.string(EXPR2):string.= temp_any_u.fi;temp_any_u=3D(EXPR2)for.i=3D(TEXT3):if.i>temp_any_u:te= mp_any_u:=3Di;fi.endfor

metapost = > log > = = .temp_any_u.endgroup

metapost = > log > mfun_max_radius->...er(EXPR2)-xpart.center(EXPR2))++(ypa= rt.center(EXPR2)-ypart.lrcorner(EXPR2)),(xpart.urcorner(EXPR2)-xpart.center= (EXPR2))++(ypart.urcorner(EXPR2)-ypart.center(EXPR2)))

metapost = > log > = = endgroup

metapost = > log > withshademethod->...cimal.center(EXPR0)withprescript&quo= t;sh_center_b=3D"&ddecimal.center(EXPR0)withprescript"sh_radi= us_a=3D"&decimal0withprescript"sh_radius_b=3D"&decim= al.mfun_max_radius((EXPR0))

metapost = > log > = = fi

metapost = > log > <to be read again>

metapost = > log > withprescript

metapost = > log > withshadecolors->...hprescript"sh_color_a_"&am= p;decimal.mfun_shade_step&"=3D"&colordecimals(EXPR0)withp= rescript"sh_color_b_"&decimal.mfun_shade_step&"=3D&q= uot;&colordecimals(EXPR1)else:withprescript

metapost = > log > = = "sh_color=3Din...

metapost = > log > <*> comment("two shades with named colors")= ; fill fullcircle scaled 5cm withshademethod "circular" withshade= colors ((1,0,0),(0,0,1,0))

metafun = > log >

metafun = > log > Oh dear. I can't decide if the expression above is posi= tive, negative, or zero.

So this compar= ison test won't be 'true'.

metafun = > log >

metapost = > log > = = ; fill fullcircle scaled 5cm shifted (6cm,0) withshademethod "...

metapost = > log >


= Hans told me not to use the B tag, so I'm asking first in case I've= missed something. Thank you in advance.

Best regards,


Jairo


--000000000000989c6505b6f14f8b-- --===============4870554881541176621== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4870554881541176621==--