1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 09:14:29 +02:00
This commit is contained in:
Justin Lin
2020-02-18 15:03:01 +08:00
parent 018b2e8be2
commit 02fac4ea5c

View File

@@ -110,14 +110,14 @@ dots = px_gray(levels, center = true, normalize = true);
color("white") color("white")
for(dot = dots) { for(dot = dots) {
translate(tf_sphere(photo_size, dot[0] + [50, 50], 50, [180, 180])) translate(tf_sphere(photo_size, dot[0] + photo_size / 2, 50, [180, 180]))
square(dot[1] * 2.5); square(dot[1] * 2.5);
} }
rotate([180, 0, 0]) rotate([180, 0, 0])
color("white") color("white")
for(dot = dots) { for(dot = dots) {
translate(tf_sphere(photo_size, dot[0] + [50, 50], 50, [180, 180])) translate(tf_sphere(photo_size, dot[0] + photo_size / 2, 50, [180, 180]))
square(dot[1] * 2.5); square(dot[1] * 2.5);
} }