1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 20:40:28 +02:00
This commit is contained in:
Justin Lin
2022-04-16 11:53:11 +08:00
parent b024c6084f
commit 8dff911ab0

View File

@@ -42,16 +42,13 @@ module hypnotic_squares(x_grids, y_grids, grid_size, final_size, line_width) {
}
}
rand_lt = [for(x = 0; x < x_grids; x = x + 1)
[for(y = 0; y < y_grids; y = y + 1)
rands(0, 1, 2)
]
rand_lt = [for(x = [0:x_grids - 1])
[for(y = [0:y_grids - 1]) rands(0, 1, 2)]
];
module grids() {
translate([0, half_lw])
for(x = [0:x_grids - 1]) {
for(y = [0:y_grids - 1]) {
for(x = [0:x_grids - 1], y = [0:y_grids - 1]) {
draw(
x * grid_size,
y * grid_size,
@@ -62,7 +59,6 @@ module hypnotic_squares(x_grids, y_grids, grid_size, final_size, line_width) {
);
}
}
}
bend_extrude(
size = [grid_size * x_grids, grid_size * y_grids + line_width],