summaryrefslogtreecommitdiff
path: root/tex/context/base/colo-ini.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-09-06 23:03:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-09-06 23:03:00 +0200
commit3e104e2078f619b5f73eb5983f2308a672c18c5f (patch)
treec75d1a7a400d0e687d6a1ea95b89ee55cc25e11a /tex/context/base/colo-ini.lua
parent425cbd3c69a5e8fc3ded0a48749205ba52641eb4 (diff)
downloadcontext-3e104e2078f619b5f73eb5983f2308a672c18c5f.tar.gz
beta 2012.09.06 23:03
Diffstat (limited to 'tex/context/base/colo-ini.lua')
-rw-r--r--tex/context/base/colo-ini.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/tex/context/base/colo-ini.lua b/tex/context/base/colo-ini.lua
index f2437cd9d..e08f3d387 100644
--- a/tex/context/base/colo-ini.lua
+++ b/tex/context/base/colo-ini.lua
@@ -848,14 +848,15 @@ end
-- handy
-local models = storage.allocate { "gray", "rgb", "cmyk", "spot" }
+local models = storage.allocate { "all", "gray", "rgb", "cmyk", "spot" }
colors.models = models -- check for usage elsewhere
-function attributes.colors.spec(name)
- local t = colorvalues[attributes_list[name]] or colorvalues[attributes_list.black]
+function colors.spec(name)
+ local l = attributes_list[a_color]
+ local t = colorvalues[l[name]] or colorvalues[l.black]
return {
- model = models[t[1]],
+ model = models[t[1]] or models[1],
s = t[2],
r = t[3], g = t[4], b = t[5],
c = t[6], m = t[7], y = t[8], k = t[9],