summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/mlib-lmt.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/mlib-lmt.lmt')
-rw-r--r--tex/context/base/mkxl/mlib-lmt.lmt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/mlib-lmt.lmt b/tex/context/base/mkxl/mlib-lmt.lmt
index e44674d13..b7c869c3b 100644
--- a/tex/context/base/mkxl/mlib-lmt.lmt
+++ b/tex/context/base/mkxl/mlib-lmt.lmt
@@ -20,6 +20,7 @@ local scannumeric = scan.numeric
local scanpath = scan.path
local injectpath = mp.inject.path
+local injectcolor = mp.inject.color
local getparameter = metapost.getparameter
local registerscript = metapost.registerscript
@@ -188,3 +189,11 @@ registerscript("scrutenized", function()
-- injectpath(t)
end)
+-- A goodie, mostly a side effect of updating the metafun manual.
+
+
+local labtorgb = attributes.colors.labtorgb
+
+registerscript("labtorgb", function()
+ injectcolor(labtorgb(scannumeric(),scannumeric(),scannumeric()))
+end)