Skip to content

labels.scad

pinkfish edited this page Oct 27, 2024 · 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.

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(width = 20, length = 50, height = 1);



Example 2:

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

Module: MakeStripedLidLabel()

Topics: Label

Usage:

  • MakeStripedLidLabel(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 striped grid in the background to keep the label in plave.

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 "Stencil Std:style=Bold")
radius the radius of the corners on the label section (default 5)
full_height full height of the lid (default false)

Example 1:

MakeStripedLidLabel() Example 1
include <boardgame_toolkit.scad>
MakeStripedLidLabel(width = 20, length = 80, lid_thickness = 2, label = "Australia");

Example 2:

MakeStripedLidLabel() Example 2
include <boardgame_toolkit.scad>
MakeStripedLidLabel(width = 20, length = 80, lid_thickness = 2, label = "Australia", full_height = true);

Clone this wiki locally