1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-04 13:57:33 +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) rand_lt = [for(x = [0:x_grids - 1])
[for(y = 0; y < y_grids; y = y + 1) [for(y = [0:y_grids - 1]) rands(0, 1, 2)]
rands(0, 1, 2)
]
]; ];
module grids() { module grids() {
translate([0, half_lw]) translate([0, half_lw])
for(x = [0:x_grids - 1]) { for(x = [0:x_grids - 1], y = [0:y_grids - 1]) {
for(y = [0:y_grids - 1]) {
draw( draw(
x * grid_size, x * grid_size,
y * grid_size, y * grid_size,
@@ -62,7 +59,6 @@ module hypnotic_squares(x_grids, y_grids, grid_size, final_size, line_width) {
); );
} }
} }
}
bend_extrude( bend_extrude(
size = [grid_size * x_grids, grid_size * y_grids + line_width], size = [grid_size * x_grids, grid_size * y_grids + line_width],