Created
February 3, 2021 22:23
-
-
Save patmandenver/1c4a9e8852c0a963fab61eab4d1ad57f to your computer and use it in GitHub Desktop.
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
thickness=1; | |
text_01="Christmas"; | |
text_01_y=60; | |
text_02="2007"; | |
text_02_y=30; | |
myFont="Revamped:style=Regular"; | |
fontSize=18; | |
width = 215; | |
height = 210; | |
window_width = width - 56; | |
window_height = 110; | |
window_top_offset = 20; | |
difference(){ | |
color("red"){ | |
linear_extrude(thickness){ | |
difference(){ | |
square([width,height]); | |
translate([(width-window_width)/2, | |
height - window_height | |
- window_top_offset]){ | |
square([window_width, | |
window_height]); | |
} | |
} | |
} | |
} | |
color("#FFFFFF"){ | |
translate([0,0,-1]){ | |
linear_extrude(thickness+2){ | |
translate([width/2,text_01_y]){ | |
text(text_01, size=fontSize, | |
valign= "center", | |
halign="center", | |
font=myFont); | |
} | |
translate([width/2,text_02_y]){ | |
text(text_02, size=fontSize, | |
valign= "center", | |
halign="center", | |
font=myFont); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment