Created
October 7, 2020 00:17
-
-
Save tinkerology/8972eb9d950aab3cc10292961c1f48b5 to your computer and use it in GitHub Desktop.
Sample sign showing text and shapes integrated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn=40; | |
module drawStar(sides, radius) | |
{ | |
for ( i = [ 0 : sides-1] ) | |
{ | |
hull() | |
{ | |
circle(radius/4); | |
rotate([0,0,360/sides*i]) | |
translate([radius,0,0]) | |
circle(0.1); | |
} | |
} | |
} | |
module drawDesign1(text1, text2, fontSize=10, fontName="Brush Script MT") | |
{ | |
text(text1, size=fontSize, font=fontName); | |
translate([0,-1*fontSize,0]) | |
text(text2, size=fontSize, font=fontName); | |
translate([-1,-2,0]) | |
drawStar(5,fontSize); | |
} | |
drawDesign1("Merry", "Christmas",10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment