Problem with shading in Metafun (LMTX)
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 > <to be read again>
metapost > log > :
metapost > log >
On 12/21/2020 4:46 AM, Jairo A. del Rio wrote:
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
in mp-base.mpxl there is a ; missing temp_any_u = u must be: temp_any_u := u ; (in the min and max macros) (i replaced some internal names as part of a cleanup) (there will be a new upload later that will also fix this) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Nice. It works again. Thank you very much!
Cordially,
Jairo
El lun., 21 de dic. de 2020 2:45 a. m., Hans Hagen
On 12/21/2020 4:46 AM, Jairo A. del Rio wrote:
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
in mp-base.mpxl there is a ; missing
temp_any_u = u
must be:
temp_any_u := u ;
(in the min and max macros)
(i replaced some internal names as part of a cleanup)
(there will be a new upload later that will also fix this)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Jairo A. del Rio