-
Notifications
You must be signed in to change notification settings - Fork 4
labels.scad
This file has all the shared label pieces for the system.
To use, add the following lines to the beginning of your file:
include <boardgame_toolkit.scad>
Building blocks for making labels.
Topics: Label
Usage:
- MakeStripedGrid(20,50);
Description:
Creates a background striped grid, this is used in the label space generation.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the grid space |
length |
length of the grid space |
bar_width |
width of the bars (default 1) |
Example 1:
include <boardgame_toolkit.scad>
MakeStripedGrid(20, 50);
Topics: Label
Usage:
- Make3dStripedGrid(20,50);
Description:
Creates a background striped grid, this is used in the label space generation.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the grid space |
length |
length of the grid space |
bar_width_top |
width of the bars (default 1) |
bar_width_bottom |
height of the bar (default bar_width_top) |
Example 1:
include <boardgame_toolkit.scad>
Make3dStripedGrid(width = 20, length = 50, height = 1);
Example 2:
include <boardgame_toolkit.scad>
Make3dStripedGrid(width = 20, length = 50, height = 0.2, bar_width_bottom = 1);
Topics: Label
Usage:
- MakeMainLidLabelSolid(20, 80, 2, label="Australia", border = 2, offset = 4);
Description:
Makes a label inside a solid background to use in the lid. It makes a label with a border and a stripped or solid grid in the background to keep the label in place.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the label section |
length |
length of the label section |
lid_thickness |
height of the lid/label |
label |
the text of the label |
border |
how wide the border is around the label (default 2) |
offset |
how far in from the sides the text should be (default 4) |
font |
the font to use for the text (default default_label_font) |
radius |
the radius of the corners on the label section (default 5) |
full_height |
full height of the lid (default false) |
label_colour |
the label colour to use (default default_label_colour) |
solid_background |
if the background should be solid (default false) |
label_background_colour |
the colour to use for the label background (default default_label_background_colour) |
Example 1:
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(width = 20, length = 80, lid_thickness = 2, label = "Australia");
Example 2:
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(width = 20, length = 80, lid_thickness = 2, label = "Australia",
full_height = true);
Example 3:
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(width = 20, length = 80, lid_thickness = 2,label = "Australia",
full_height = true, label_colour = "blue");
Topics: Label
Usage:
- MakeMainLidLabelStriped(20, 80, 2, label="Australia", border = 2, offset = 4);
Description:
Makes a label inside a striped grid to use in the lid. It makes a label with a border and a stripped or solid grid in the background to keep the label in place.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the label section |
length |
length of the label section |
lid_thickness |
height of the lid/label |
label |
the text of the label |
border |
how wide the border is around the label (default 2) |
offset |
how far in from the sides the text should be (default 4) |
font |
the font to use for the text (default default_label_font) |
radius |
the radius of the corners on the label section (default 5) |
full_height |
full height of the lid (default false) |
label_colour |
the label colour to use (default default_label_colour) |
solid_background |
if the background should be solid (default false) |
label_background_colour |
the colour to use for the label background (default default_label_background_colour) |
Example 1:
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(width = 20, length = 80, lid_thickness = 2, label = "Australia");
Example 2:
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(width = 20, length = 80, lid_thickness = 2, label = "Australia",
full_height = true);
Example 3:
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(width = 20, length = 80, lid_thickness = 2,label = "Australia",
full_height = true, label_colour = "blue");
Topics: Label
Usage:
- MakeFramedLidLabel(20, 80, 2, label="Australia", border = 2, offset = 4);
Description:
Makes a label inside a solid or striped grid to use in the lid. It makes a label with a border and a stripped or solid grid in the background to keep the label in place.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the label section |
length |
length of the label section |
lid_thickness |
height of the lid/label |
label |
the text of the label |
text_scale |
the scale of the font to use (default 1.0) |
border |
how wide the border is around the label (default 2) |
offset |
how far in from the sides the text should be (default 4) |
font |
the font to use for the text (default default_label_font) |
radius |
the radius of the corners on the label section (default 5) |
full_height |
full height of the lid (default false) |
label_colour |
the label colour to use (default default_label_colour) |
solid_background |
if the background should be solid (default false) |
label_background_colour |
the colour to use for the label background (default default_label_background_colour) |
finger_holes |
put in finger holes around the label {{default true}} |
Example 1:
include <boardgame_toolkit.scad>
MakeFramedLidLabel(width = 20, length = 80, lid_thickness = 2, label = "Australia");
Example 2:
include <boardgame_toolkit.scad>
MakeFramedLidLabel(width = 20, length = 80, lid_thickness = 2, label = "Australia",
full_height = true);
Example 3:
include <boardgame_toolkit.scad>
MakeFramedLidLabel(width = 20, length = 80, lid_thickness = 2,label = "Australia",
full_height = true, label_colour = "blue");
Topics: Label
Usage:
- MakeFramelessLidLabel(20, 80, 2, "Australia");
Description:
Makes a label with just the text and no frame.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the box without the walls |
length |
length of the box without the walls |
lid_thickness |
height of the lid/label |
label |
the text of the label |
text_scale |
the scale of the font to use |
font |
the font to use for the text (default default_label_font) |
label_colour |
the label colour to use (default default_label_colour) |
solid_background |
if the background should be solid (default false) |
label_background_colour |
the colour to use for the label background (default default_label_background_colour) |
Example 1:
include <boardgame_toolkit.scad>
MakeFramelessLidLabel(width = 40, length = 80, lid_thickness = 2, label = "Australia",
label_type = LABEL_TYPE_FRAMELESS, font="Stencil Std:style=Bold");
Example 2:
include <boardgame_toolkit.scad>
MakeFramelessLidLabel(width = 40, length = 80, lid_thickness = 2, label = "Australia",
label_colour = "blue", label_type = LABEL_TYPE_FRAMELESS_ANGLE, font="Stencil Std:style=Bold");
Table of Contents
Function Index
Topics Index
Cheat Sheet
Tutorials
Boxes:
- cap_box.scad
- cap_box_polygon.scad
- filament_hinge_box.scad
- hinge_box.scad
- inset_box.scad
- magnetic_box.scad
- no_lid.scad
- sliding_box.scad
- sliding_catch_box.scad
- slipover_box.scad
- slipover_path_box.scad
Basics:
Dividers:
Shapes:
Slicing:
CardLibrary:
Miscellaneous: