1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-16 12:24:09 +02:00

Parameterised belt colors.

This commit is contained in:
Martin Budden
2020-01-13 08:53:11 +00:00
parent 8ac06b53e7
commit c55b8b6d1c
2 changed files with 2 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ module belt_test() {
translate([-25, 0])
layout([for(b = belts) belt_width(b)], 10)
rotate([0, 90, 0])
belt(belts[$i], [[0, 0, 20], [0, 1, 20]]);
belt(belts[$i], [[0, 0, 20], [0, 1, 20]], belt_colour = $i%2==0 ? grey90 : grey20, tooth_colour = $i%2==0 ? grey70 : grey50);
}
if($preview)