Created
April 15, 2022 11:09
-
-
Save patmandenver/e45b1c44050c98173745c888ca5ea89b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// | |
// Created by Patrick Bailey iQless.com | |
// | |
//////////////////////////////////////// | |
base_thickness = 1; | |
base_width = 215; | |
base_height = 210; | |
picture_Font="Jurassic Park:style=Regular"; | |
svg_height = 0.30; | |
svg_adjust = [-7, 30]; | |
svg_scale = .9; | |
svg_image_file = "dino_01.svg"; | |
svg_line_image_file = "dino_01_line.svg"; | |
difference(){ | |
back_matt(base_thickness, base_width, base_height); | |
translate([0,0, -base_thickness]){ | |
linear_extrude(3*base_thickness){ | |
svg(svg_image_file, svg_height, svg_scale, svg_adjust); | |
} | |
} | |
} | |
color("black"){ | |
linear_extrude(base_thickness + .3){ | |
words("Billy",picture_Font, 48, [50,20]); | |
svg(svg_line_image_file, svg_height, svg_scale, svg_adjust); | |
} | |
} | |
module svg(svg_image_file, svg_height, | |
svg_scale, svg_adjust){ | |
translate(svg_adjust){ | |
scale([svg_scale,svg_scale,1]){ | |
import(svg_image_file, center=false); | |
} | |
} | |
} | |
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("#e3dac9"){ | |
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