From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108166 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith McKay Newsgroups: gmane.comp.tex.context Subject: Is there a bug in lmt_shade[...=...,...=...] Date: Wed, 29 Jul 2020 14:43:05 +0100 Organization: The PotHole Press Message-ID: <8b92c490-4854-ed9d-8dfc-b8791757f280@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1718293458599264543==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32554"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 29 15:43: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 1k0mMo-0008LF-Kl for gctc-ntg-context-518@m.gmane-mx.org; Wed, 29 Jul 2020 15:43:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 27089161597; Wed, 29 Jul 2020 15:43:11 +0200 (CEST) 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 PNY74OB2LPTI; Wed, 29 Jul 2020 15:43:10 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 44A9E161598; Wed, 29 Jul 2020 15:43:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85DA7161598 for ; Wed, 29 Jul 2020 15:43:08 +0200 (CEST) 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 PdaKbxsbtSBW for ; Wed, 29 Jul 2020 15:43:07 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=mckaymeister@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 E8342161597 for ; Wed, 29 Jul 2020 15:43:07 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id r12so21645724wrj.13 for ; Wed, 29 Jul 2020 06:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:organization:message-id:date:user-agent :mime-version:content-language; bh=iWLkkqobZWsHZ00EQqpbQ/MRB9aIOR46OPpQV9y85Q8=; b=Tpx7b5xuS8bON0gPDTri2hoBS/ncUVDc0/0/+MxthxCRQUynZ24tgpenYrDcdb41Fp LKaUGjzJ8zcEdJ1u4xxPLDXdw9mwh8dSF+8n0+DT0RoSACEv71+p8tsgy+tyJ8tDeRP/ v2dW2VDSiDKidAfWWzh9zDDEuu/K53JYhrPRxxORwl4U4EmWbgpFHbdbx1F6+1jOqtyz 2H+3vdp+R10mMPYbQahVINtvsSO62X+KUqZkszJweKShuHkjVRkJXiQpE53ctk4esk6k dGBCxwVh/DG8pPIZV04GDQKL3nPZSzJZLsbx73DMfp1D4AgIfqVQKR8vwJOrlnKRjSTL 5T7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:organization:message-id:date :user-agent:mime-version:content-language; bh=iWLkkqobZWsHZ00EQqpbQ/MRB9aIOR46OPpQV9y85Q8=; b=I2rBiy+SaTH6KU3N672HC9Szf80hs4XedA+fkC7mY+iMZQ8uj1AwXptd490a1S2Ge8 k0S8r4McS+37I+HZNRHLfHGHbOg8jlUNwV9LPSm51v/timdu6FbpL1q/UpPlI9S/A3rs BPfdX5DSL74E460hfx20VHLqUJ8xtCCkfTVVNhyjf2BFgq58u3KXjTTHh/dDIEZACyTu quABSn+iqtbD4fIHJLE4TBooDJ9VbSk/pJC+wMLb5fCznl+taBNLaR/E5otFuQ13oi8D erXAHU3u01AnPE+76wKruGlzj6bfe3PL2NN7PADinAyWzRKdWH354JPpiXX/P86cByYS mwoQ== X-Gm-Message-State: AOAM53305h8wVHsYTGVN4Kzp8sO2DzBg7a4lbv/5sxSAfP7N4Pcrk75P OhpiyNDAFvyQY5g7vp+U/o6EM26Y5sM= X-Google-Smtp-Source: ABdhPJzF3cphjFmUYxRSOj7SGr33edBF3U23Dw1wkArlOf38RMEcgJwEj1w169NNl562E8+XYmCHFw== X-Received: by 2002:a5d:6641:: with SMTP id f1mr29732976wrw.307.1596030186981; Wed, 29 Jul 2020 06:43:06 -0700 (PDT) Original-Received: from Keiths-Mac-mini.local (cpc100294-uddi29-2-0-cust139.20-3.cable.virginm.net. [82.42.59.140]) by smtp.googlemail.com with ESMTPSA id h5sm6379072wrc.97.2020.07.29.06.43.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2020 06:43:06 -0700 (PDT) Content-Language: en-US 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:108166 Archived-At: This is a multi-part message in MIME format. --===============1718293458599264543== Content-Type: multipart/alternative; boundary="------------5B54E025431F79FA4A2F210C" Content-Language: en-US This is a multi-part message in MIME format. --------------5B54E025431F79FA4A2F210C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Has a bug appeared in the command lmt_shade[ ]? This used to work before I upgraded. \setuppapersize [A5, portrait][A4, landscape] \setuparranging[2UP] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ; definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade [ path = unitsquare xscaled width yscaled height, direction = "up", alternative = "linear", colors = { "MyColor1", "MyColor3" }, ] ; StopPage; \stopMPpage \stoptext The console output gives this: system > system > ConTeXt ver: 2020.07.29 14:08 LMTX fmt: 2020.7.29 int: english/english system > metapost > log > metapost > log > loading metafun, including plain.mp version 1.004 for metafun iv and xl metapost > log > metapost > log > ! Not a cycle. metapost > log > metapost > log > withprescript metapost > log > ...i.fill.mfun_shade_path.withprescript metapost > log > "sh_domain="&decimal.domai... metapost > log > metapost > log > image->...ture;currentpicture:=nullpicture;(TEXT3) metapost > log > ;currentpicture.if.str(SUF... metapost > log > metapost > log > lmt_do_shade->...shed.evenly;fi.fi.popparameters;) metapost > log > endgroup metapost > log > lmt_do_shade metapost > log > metapost > log > <*> ...ar", colors = { "MyColor1", "MyColor3" }, ] metapost > log > ; StopPage; ; metapost > log > system > print height forced to paper height system > print width forced to paper width Thanks Keith --------------5B54E025431F79FA4A2F210C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hi

Has a bug appeared in the command lmt_shade[ ]?

This used to work before I upgraded.

\setuppapersize [A5, portrait][A4, landscape]

\setuparranging[2UP]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;

definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;

draw lmt_shade [

path = unitsquare xscaled width yscaled height,

direction = "up",

alternative = "linear",

colors = { "MyColor1", "MyColor3" },

] ;

StopPage;

\stopMPpage

\stoptext

The console output gives this:

system >

system > ConTeXt ver: 2020.07.29 14:08 LMTX fmt: 2020.7.29 int: english/english

system >

metapost > log >

metapost > log > loading metafun, including plain.mp version 1.004 for metafun iv and xl

metapost > log >

metapost > log > ! Not a cycle.

metapost > log > <to be read again>

metapost > log > withprescript

metapost > log > <argument> ...i.fill.mfun_shade_path.withprescript

metapost > log > "sh_domain="&decimal.domai...

metapost > log >

metapost > log > image->...ture;currentpicture:=nullpicture;(TEXT3)

metapost > log > ;currentpicture.if.str(SUF...

metapost > log >

metapost > log > lmt_do_shade->...shed.evenly;fi.fi.popparameters;)

metapost > log > endgroup

metapost > log > <scantokens> lmt_do_shade

metapost > log >

metapost > log > <*> ...ar", colors = { "MyColor1", "MyColor3" }, ]

metapost > log > ; StopPage; ;

metapost > log >

system > print height forced to paper height

system > print width forced to paper width

Thanks

Keith

--------------5B54E025431F79FA4A2F210C-- --===============1718293458599264543== 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== --===============1718293458599264543==--