summaryrefslogtreecommitdiff
path: root/tex/context/base/lpdf-col.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/lpdf-col.lua')
-rw-r--r--tex/context/base/lpdf-col.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/lpdf-col.lua b/tex/context/base/lpdf-col.lua
index f5612a32b..a8e35dc74 100644
--- a/tex/context/base/lpdf-col.lua
+++ b/tex/context/base/lpdf-col.lua
@@ -25,7 +25,7 @@ local forcedmodel = colors.forcedmodel
-- This module assumes that some functions are defined in the colors namespace
-- which most likely will be loaded later.
-function lpdf.color(model,ca,default) -- todo: use gray when no color
+local function lpdfcolor(model,ca,default) -- todo: use gray when no color
if colors.supported then
local cv = colorsvalue(ca)
if cv then
@@ -57,6 +57,12 @@ function lpdf.color(model,ca,default) -- todo: use gray when no color
end
end
+lpdf.color = lpdfcolor
+
+function lpdf.pdfcolor(attribute) -- bonus, for pgf and friends
+ context(lpdfcolor(1,attribute))
+end
+
function lpdf.transparency(ct,default) -- kind of overlaps with transparencycode
-- beware, we need this hack because normally transparencies are not
-- yet registered and therefore the number is not not known ... we