Skip to content

labels.scad

pinkfish edited this page Mar 20, 2026 · 13 revisions

LibFile: 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>

File Contents

  1. Section: Labels

Section: Labels

Building blocks for making labels.

Function: MakeLabelOptions()

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)

Module: MakeStripedGrid()

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:

MakeStripedGrid() Example 1
include <boardgame_toolkit.scad>
MakeStripedGrid([20, 50]);




Module: Make3dStripedGrid()

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:

Make3dStripedGrid() Example 1
include <boardgame_toolkit.scad>
Make3dStripedGrid(size = [20, 50], height = 1);



Example 2:

Make3dStripedGrid() Example 2
include <boardgame_toolkit.scad>
Make3dStripedGrid(size = [20, 50], height = 0.2, bar_width_bottom = 1);

Module: MakeMainLidLabelSolid()

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:

MakeMainLidLabelSolid() Example 1
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(size = [20,80], lid_thickness = 2, label = "Australia",
  options=MakeLabelOptions());

Example 2:

MakeMainLidLabelSolid() Example 2
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(size = [20,80], lid_thickness = 2, label = "Australia",
  options=MakeLabelOptions(full_height=true));

Example 3:

MakeMainLidLabelSolid() Example 3
include <boardgame_toolkit.scad>
MakeMainLidLabelSolid(size = [20,80], lid_thickness = 2,label = "Australia",
  options=MakeLabelOptions(full_height = true, label_colour = "blue"));

Module: MakeMainLidLabelStriped()

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:

MakeMainLidLabelStriped() Example 1
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(size = [20,80], lid_thickness = 2, label = "Australia",
  options=MakeLabelOptions());

Example 2:

MakeMainLidLabelStriped() Example 2
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(size = [20,80], lid_thickness = 2, label = "Australia",
  options=MakeLabelOptions(full_height = true));

Example 3:

MakeMainLidLabelStriped() Example 3
include <boardgame_toolkit.scad>
MakeMainLidLabelStriped(size = [20,80], lid_thickness = 2,label = "Australia",
  options=MakeLabelOptions(full_height = true, label_colour = "blue"));

Module: MakeFramedLidLabel()

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:

MakeFramedLidLabel() Example 1
include <boardgame_toolkit.scad>
MakeFramedLidLabel(size = [20,80], lid_thickness = 2, label = "Australia",
  options=MakeLabelOptions());

Example 2:

MakeFramedLidLabel() Example 2
include <boardgame_toolkit.scad>
MakeFramedLidLabel(size = [20,80], lid_thickness = 2, label = "Australia",
  options=MakeLabelOptions(full_height = true));

Example 3:

MakeFramedLidLabel() Example 3
include <boardgame_toolkit.scad>
MakeFramedLidLabel(size = [20,80], lid_thickness = 2,label = "Australia",
  options=MakeLabelOptions(full_height = true, label_colour = "blue"));

Module: MakeFramelessLidLabel()

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:

MakeFramelessLidLabel() 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:

MakeFramelessLidLabel() 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, ));

Clone this wiki locally