Skip to content

Instantly share code, notes, and snippets.

@patmandenver
Created February 3, 2021 22:23
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 patmandenver/1c4a9e8852c0a963fab61eab4d1ad57f to your computer and use it in GitHub Desktop.
Save patmandenver/1c4a9e8852c0a963fab61eab4d1ad57f to your computer and use it in GitHub Desktop.
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