From a614d807813268768419bd4097ca3267993d319b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Mar 2014 21:52:20 +0100 Subject: ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/lisp-esque | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/lisp-esque b/examples/lisp-esque index b26631f..c419746 100644 --- a/examples/lisp-esque +++ b/examples/lisp-esque @@ -671,6 +671,7 @@ def _sigmoid(mods, args): if red or green or blue: args = [[arg[0] if red else None, arg[1] if green else None, arg[2] if blue else None] for arg in args] adjustments.append(lambda monitor : sigmoid(*(args[monitor % len(args)]))) + # TODO default def _limits(mods, args): @@ -736,12 +737,14 @@ def _manipulate(mods, args): red = 'red' in mods green = 'green' in mods blue = 'blue' in mods + cie = 'cie' in mods args = evaluate_tree(args, False) args = [[arg, arg, arg] if isinstance(arg, str) else arg for arg in args] args = [[None if a == 'nil' else eval(a) for a in arg] for arg in args] if red or green or blue: args = [[arg[0] if red else None, arg[1] if green else None, arg[2] if blue else None] for arg in args] - adjustments.append(lambda monitor : manipulate(*(args[monitor % len(args)]))) + adjustments.append(lambda monitor : (cie_manipulate if cie else manipulate)(*(args[monitor % len(args)]))) + # TODO default def _standardise(mods, args): -- cgit v1.2.3-70-g09d2