Skip to content

Instantly share code, notes, and snippets.

@patmandenver
Created April 18, 2022 20:04
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/50e0adc5032a324459574364ce59438b to your computer and use it in GitHub Desktop.
Save patmandenver/50e0adc5032a324459574364ce59438b to your computer and use it in GitHub Desktop.
//
// Created by Patrick Bailey iQless.com
//
////////////////////////////////////////
base_thickness = 1;
base_width = 215;
base_height = 210;
frame_window_width = 160;
frame_window_height = 110;
frame_window_offset = [base_width/2 - frame_window_width/2,
base_height/2 - frame_window_height/2 + 30];
picture_Font="Revamped:style=Regular";
difference(){
back_matt(base_thickness, base_width, base_height);
translate([0,0, -base_thickness]){
linear_extrude(3*base_thickness){
window_frame(base_thickness, frame_window_width,
frame_window_height, frame_window_offset);
words("Christmas",picture_Font, 18, [base_width/2,60]);
words("2022",picture_Font, 18, [base_width/2,30]);
}
}
}
module words(word,sign_font, font_size, position){
translate([position[0], position[1]]){
text(word, size=font_size,
valign= "center",
halign="center", font=sign_font);
}
}
module window_frame(base_thickness, frame_window_width,
frame_window_height, frame_window_offset){
color("blue"){
translate([0,0,-base_thickness]){
translate(frame_window_offset){
square([frame_window_width, frame_window_height]);
}
}
}
}
module back_matt(base_thickness, base_width, base_height){
color("red"){
linear_extrude(base_thickness){
square([base_width, base_height]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment