card and pawns to teach children coding

card and pawns to teach children coding

Description

this is the my code for the pawns: labelSize = 9; difference (){ difference(){ translate ([0,0,0]) color ("green") cylinder (2.5,9.8,9.8); translate ([-11,-11,-1]) cube ([22,4.1,5]); } translate ([1,1,1]) rotate ([0,0,-90]) linear_extrude(height = 5, center = true, convexity = 10, twist = 0) text("\u25B2", font="Arial:style=Regular", direction="ltr", halign="center", valign="center", size=labelSize); and this is for the card: $fn = 200; difference(){ union(){ difference(){ union(){ translate ([0,0,-1.2]){ difference(){ difference(){ translate ([0,135,1.3]) rotate ([8,0,0]) cube ([60,12.5,7]); rotate ([21,0,0]) translate ([-10,126,-44]) cube ([80,20,10]); } rotate ([21,0,0]) translate ([3,128.5,-46]) cube ([54,10.3,10]); }} difference(){ union(){ difference(){ union(){ translate ([0,8.5,0]) cube ([60,142.835,2]); translate ([5.8,4,0]) cube ([48.4,5,2]); intersection(){ translate ([0,4,0]) cube ([60,147.35,2]); union(){ translate ([54.1,8.5,-1]) cylinder (10,2,2); translate ([5.8,8.5,-1]) cylinder (10,2,2); }}} translate ([0,0,-.5]){ union(){ translate ([5,135,1.5]) cube ([50,10,2]); for (a = [20 : 25: 120]){ translate ([17,a,1.5]) cylinder (3,10,10); } translate ([26,0,0]) { for (a = [20 : 25 : 120]){ translate ([17,a,1.5]) cylinder (3,10,10); }}}}}} union(){ for (i = [13 : 25 : 113]){ translate ([36,i,-1.5]) cube ([14,14,6]); translate ([10,i,-1.5]) cube ([14,14,6]); }}}} translate ([-1,147.5,-1]) rotate ([8,0,0]) cube ([70,10,10]); }} union(){ translate([-0.1,0,1]) cube ([4,134,2]); translate([-1.1,0,-1]) cube ([2.5,134,5]); translate([56.1,0,1]) cube ([4,134,2]); translate([58.5,0,-1]) cube ([3,134,6]); translate([0,0,-1]) cube ([60,6.5,5]); }} for (a = [20 : 25: 120]){ intersection(){ translate ([17,a,1.5]) cylinder (1,10,10); translate ([6,a-11,1]) cube ([22,4,1]); }} for (a = [20 : 25 : 120]){ intersection(){ translate ([43,a,1.5]) cylinder (3,10,10); translate ([28,a-11,1]) cube ([22,4,1]); }}

Statistics

Likes

0

Downloads

0

Category

Other