summaryrefslogtreecommitdiff
path: root/tex/context/base/colo-ext.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/colo-ext.mkiv')
-rw-r--r--tex/context/base/colo-ext.mkiv13
1 files changed, 5 insertions, 8 deletions
diff --git a/tex/context/base/colo-ext.mkiv b/tex/context/base/colo-ext.mkiv
index f973af73a..3483c1536 100644
--- a/tex/context/base/colo-ext.mkiv
+++ b/tex/context/base/colo-ext.mkiv
@@ -86,15 +86,12 @@
% test {\mycolorb OEPS} test
% \stoptext
-\def\defineintermediatecolor
- {\dodoubleempty\dodefineintermediatecolor}
-
-\def\dodefineintermediatecolor[#1][#2,#3,#4]% -- no checking
+\def\defineintermediatecolor[#1]#2[#3,#4,#5]#6[#7]% no checking: \dotripleempty adds {} inside []
{\ifconditional\collectcolorsinlist\collectcolorinlist{#1}\fi
- \ctxlua{colors.defineintermediate("#1",0#2,
- \thecolorattribute{#3},\thecolorattribute{#4},
- \thetransparencyattribute{#3},\thetransparencyattribute{#4},
- \iffreezecolors true\else false\fi)}%
+ \ctxlua{colors.defineintermediatecolor("#1",0#3,
+ \thecolorattribute{#4},\thecolorattribute{#5},
+ \thetransparencyattribute{#4},\thetransparencyattribute{#5},
+ "#7",false,\iffreezecolors true\else false\fi)}% not global
\dodefinecolorcommand\setvalue{#1}}
\protect \endinput