Skip to content

Instantly share code, notes, and snippets.

@tinkerology
Created October 7, 2020 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinkerology/8972eb9d950aab3cc10292961c1f48b5 to your computer and use it in GitHub Desktop.
Save tinkerology/8972eb9d950aab3cc10292961c1f48b5 to your computer and use it in GitHub Desktop.
Sample sign showing text and shapes integrated
$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