summaryrefslogtreecommitdiff
path: root/testdata/scad/features/color-tests.scad
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/scad/features/color-tests.scad')
-rw-r--r--testdata/scad/features/color-tests.scad15
1 files changed, 15 insertions, 0 deletions
diff --git a/testdata/scad/features/color-tests.scad b/testdata/scad/features/color-tests.scad
new file mode 100644
index 0000000..3ef2540
--- /dev/null
+++ b/testdata/scad/features/color-tests.scad
@@ -0,0 +1,15 @@
+// Empty
+color();
+// No children
+color() { }
+
+module object() cube([10,10,10]);
+
+translate([12,12,0]) object();
+color([1,0,0]) translate([24,12,0]) object();
+translate([0,12,0]) color("Purple") object();
+color([0,0,1,0.5]) object();
+translate([12,0,0]) color([0,0,1],0.5) object();
+translate([24,0,0]) color(c="Green",alpha=0.2) object();
+translate([-12,12,0]) color() object();
+translate([-12,0,0]) color(alpha=0.5) object();
contact: Jan Huwald // Impressum