diff options
author | Marius <mariausol@gmail.com> | 2012-09-07 00:20:22 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-09-07 00:20:22 +0300 |
commit | 5b4c6dd791dfcb02838191ccee764cbb215b7cc4 (patch) | |
tree | bfd6e20699fd7d82734057723f2e765ce0d74da5 /tex/context/base/colo-ini.lua | |
parent | edd2b22c9d92fd77d47b5fb6517a230470ec7038 (diff) | |
download | context-5b4c6dd791dfcb02838191ccee764cbb215b7cc4.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.lua | 9 |
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], |