diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-01-29 16:15:09 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-01-29 16:15:09 +0100 |
commit | 452587cdeefbf6e3bf1eee91e4e976f1135b785f (patch) | |
tree | e52f05dfd327c3b31a1b0fb82545dbdec639d2e2 /tex/context/base/mkiv/colo-ini.lua | |
parent | 975f4f9f2d71d8021900955404f8b144ca6895f5 (diff) | |
download | context-452587cdeefbf6e3bf1eee91e4e976f1135b785f.tar.gz |
2016-01-28 22:37:00
Diffstat (limited to 'tex/context/base/mkiv/colo-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/colo-ini.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/colo-ini.lua b/tex/context/base/mkiv/colo-ini.lua index 81adfa680..495a09809 100644 --- a/tex/context/base/mkiv/colo-ini.lua +++ b/tex/context/base/mkiv/colo-ini.lua @@ -576,10 +576,13 @@ local function mpcolor(model,ca,ta,default) return formatters["(%s,%s,%s)"](cv[3],cv[4],cv[5]) end end - else - default = default or 0 -- rgb ! - return formatters["(%s,%s,%s)"](default,default,default) end + local tv = transparencyvalues[ta] + if tv then + return formatters["(%s,%s)"](tv[1],tv[2]) + end + default = default or 0 -- rgb ! + return formatters["(%s,%s,%s)"](default,default,default) end local function mpnamedcolor(name) |