summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-08 16:10:40 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-08 16:10:40 -0500
commita76d4f1fb96633e7f348ba6aa0c14b726e15e28e (patch)
treeaae8f28d884e7beca4441524c3a981c8340fde4f /dimension/realize.c
parent1ae277f2094a21d93b1460bf466ff657201310c2 (diff)
downloaddimension-a76d4f1fb96633e7f348ba6aa0c14b726e15e28e.tar.xz
Add quick_color to pigments.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r--dimension/realize.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index ab5f2a0..e6de1a4 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -589,6 +589,14 @@ dmnsn_realize_pigment_modifiers(dmnsn_astnode astnode, dmnsn_pigment *pigment)
);
break;
+ case DMNSN_AST_QUICK_COLOR:
+ {
+ dmnsn_astnode quick_color;
+ dmnsn_array_get(modifier->children, 0, &quick_color);
+ pigment->quick_color = dmnsn_realize_color(quick_color);
+ break;
+ }
+
case DMNSN_AST_COLOR_LIST:
case DMNSN_AST_COLOR_MAP:
/* Already handled by dmnsn_realize_pattern_pigment() */