From 5b4c6dd791dfcb02838191ccee764cbb215b7cc4 Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 7 Sep 2012 00:20:22 +0300 Subject: beta 2012.09.06 23:03 --- tex/context/base/colo-ini.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tex/context/base/colo-ini.lua') 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], -- cgit v1.2.3