Hi All

 I think a bug has appeared quite recently in the command, lmt_shade. A MWE below followed by the error output.

Best Wishes

Keith McKay

\setuppapersize[A4,landscape][A4,landscape]

\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

%%%Error Log%%%

system >

system > ConTeXt ver: 2021.03.13 11:22 LMTX fmt: 2021.3.16 int: english/english

system >

system > 'cont-new.mkxl' loaded <snip>

metapost > initializing instance 'metafun:1' using format 'metafun' and method 'default'

metapost > loading 'metafun' as 'metafun.mpxl' using method 'default'

metapost > initializing number mode 'scaled'

metafun > log >

metafun > log > error: Not a cycle

metafun > log >

metapost > log > <to be read again>

metapost > log > withprescript

metapost > log > <argument> ...asparameter"vector":center_a:=point(getparameter"vector"1)of.mfun_shade_path;center_b:=point(getparameter"vector"2)of.mfun_shade_path;fi.fill.mfun_shade_path.withprescript

metapost > log > "sh_domain="...

metapost > log > image->begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3)

metapost > log > ;currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorn...

metapost > log > lmt_do_shade->...ve="circular":draw.fullcircle.scaled(radius_a)shifted.center_a.dashed.evenly;draw.fullcircle.scaled(factor*radius_b)shifted-center_b.dashed.evenly;fi.fi.popparameters;)

metapost > log > endgroup

metapost > log > <scantokens> lmt_do_shade

metapost > log >

metapost > log > <*> ...3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade [ path = unitsquare xscaled width yscaled height, direction = "up", alternative = "linear", colors = { "MyColor1", "MyColor3" }, ]

metafun > log >

metafun > log > That contour should have ended with '.. cycle' or '& cycle'. So I'll not change

anything just now.

metafun > log >

metapost > log > ; StopPage; ;

metapost > log >