-
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
Arguments:
| By Position | What it does |
|---|---|
text_scale |
the scale of the font to use |
text_length |
the length of the text |
angle |
the angle of the text |
label_colour |
the label colour to use (default default_label_colour) |
label_background_colour |
the colour to use for the label background (default default_label_background_colour) |
short_length |
if the label should be short length (default false) |
label_diff |
how much to move the label (default [0, 0]) |
border |
the border around the label (default 2) |
offset |
the offset for the text (default 4) |
radius |
the radius of the corners (default 5) |
font |
the font to use for the text (default default_label_font) |
full_height |
if the label should be full height (default false) |
finger_hole_size |
the size of the finger hole (default 10) |
material_colour |
the colour of the material (default default_material_colour) |
label_type |
the type of label (default default_label_type) |
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(size = [20, 50], height = 1);
Example 2:
include <boardgame_toolkit.scad>
Make3dStripedGrid(size = [20, 50], height = 0.2, bar_width_bottom = 1);
Topics: Label
Usage:
- MakeMainLidLabelSolid(size = [20, 80], lid_thickness = 2, label="Australia", options=MakeLabelOptions());
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 |
|---|---|
size |
[width, length] of the label section |
lid_thickness |
height of the lid/label |
label |
the text of the label |
options |
the options associated with the labels |
Example 1:
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(size = [20,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions());
Example 2:
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(size = [20,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions(full_height=true));
Example 3:
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(size = [20,80], lid_thickness = 2,label = "Australia",
options=MakeLabelOptions(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 |
options |
the options associated with the labels |
Example 1:
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(size = [20,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions());
Example 2:
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(size = [20,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions(full_height = true));
Example 3:
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(size = [20,80], lid_thickness = 2,label = "Australia",
options=MakeLabelOptions(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 |
|---|---|
size |
size of the label section |
lid_thickness |
height of the lid/label |
label |
the text of the label |
options |
the options associated with the labels |
Example 1:
include <boardgame_toolkit.scad>
MakeFramedLidLabel(size = [20,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions());
Example 2:
include <boardgame_toolkit.scad>
MakeFramedLidLabel(size = [20,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions(full_height = true));
Example 3:
include <boardgame_toolkit.scad>
MakeFramedLidLabel(size = [20,80], lid_thickness = 2,label = "Australia",
options=MakeLabelOptions(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 |
options |
the options associated with the labels |
Example 1:
include <boardgame_toolkit.scad>
MakeFramelessLidLabel(size = [40,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions(font="Stencil Std:style=Bold", label_type = LABEL_TYPE_FRAMELESS,));
Example 2:
include <boardgame_toolkit.scad>
MakeFramelessLidLabel(size = [40,80], lid_thickness = 2, label = "Australia",
options=MakeLabelOptions(font="Stencil Std:style=Bold",
label_colour = "blue", label_type = LABEL_TYPE_FRAMELESS_ANGLE, ));
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: