Skip to content

flags.scad

pinkfish edited this page Mar 20, 2026 · 5 revisions

LibFile: flags.scad

This file has all the modules needed to make some fun flags.

To use, add the following lines to the beginning of your file:

include <boardgame_toolkit.scad>

File Contents

  1. Section: Flags

Section: Flags

Module: FlagBackgroundAndBorder()

Topics: Flags

Description:

Makes a background to the flag with the specified border. The first child is used to subtract from the background while the second child renders the inside of the flag.

Arguments:

By Position What it does
length length of the background
height height of the background
background_color color of the background
width width of background (default length/2)
background generate the background (default true)
border size of border to generate (default 0)
solid_background generate a solid background for MMU (default false)
grid_spacing spacing for the striped grid (default 1.5)

Module: StAndrewsCross()

Topics: Flags

Description:

Flag of the St Andrews Cross to use for anything.

Arguments:

By Position What it does
length length of the flag
height height of the cross

Example 1:

StAndrewsCross() Example 1
include <boardgame_toolkit.scad>
StAndrewsCross(100, 4);



Example 2:

StAndrewsCross() Example 2
include <boardgame_toolkit.scad>
StAndrewsCross(100, 4);



Example 3:

StAndrewsCross() Example 3
include <boardgame_toolkit.scad>
StAndrewsCross(100, 4);




Module: StPatricksCross()

Topics: Flags

Description:

Flag of the St Patricks Cross to use for anything.

Arguments:

By Position What it does
length length of the flag
height height of the cross

Example 1:

StPatricksCross() Example 1
include <boardgame_toolkit.scad>
StPatricksCross(100, 5);



Example 2:

StPatricksCross() Example 2
include <boardgame_toolkit.scad>
StPatricksCross(100, 4);



Example 3:

StPatricksCross() Example 3
include <boardgame_toolkit.scad>
StPatricksCross(100, 4);




Module: StGeorgesCross()

Topics: Flags

Description:

Flag of the St Georges Cross to use for anything.

Arguments:

By Position What it does
length length of the flag
white_height height of the white parts
red_height height of the red parts

Example 1:

StGeorgesCross() Example 1
include <boardgame_toolkit.scad>
StGeorgesCross(100, 5, 4);



Example 2:

StGeorgesCross() Example 2
include <boardgame_toolkit.scad>
StGeorgesCross(100, 5, 4);



Example 3:

StGeorgesCross() Example 3
include <boardgame_toolkit.scad>
StGeorgesCross(100, 5, 4);




Module: UnionJack()

Topics: Flags

Description:

Flag of Great Britan to use for anything.

Arguments:

By Position What it does
length length of the flag
white_height height of the white parts
red_height height of the red parts
background put in a blue background with stripes (default true)
border border to put on the flag (this goes outside the length) (default 0)

Example 1:

UnionJack() Example 1
include <boardgame_toolkit.scad>
UnionJack(100, 5, 4);



Example 2:

UnionJack() Example 2
include <boardgame_toolkit.scad>
UnionJack(100, 5, 4, border = 1);



Example 3:

UnionJack() Example 3
include <boardgame_toolkit.scad>
UnionJack(100, 5, 4, background = false);




Module: AustralianFlag()

Topics: Flags

Description:

Flag of Australia to use for anything.

Arguments:

By Position What it does
length length of the flag
white_height height of the white parts
red_height height of the red parts
blue_height height of the blue parts
border border to put on the flag (this goes outside the length) (default 0)
background put in a blue background with stripes (default true)
solid_background generate the flag for an mmu, solid background (default false)

Example 1:

AustralianFlag() Example 1
include <boardgame_toolkit.scad>
AustralianFlag(100, 5, 4, 1);



Example 2:

AustralianFlag() Example 2
include <boardgame_toolkit.scad>
AustralianFlag(100, 5, 4, 1, border = 1);



Example 3:

AustralianFlag() Example 3
include <boardgame_toolkit.scad>
AustralianFlag(100, 5, 4, 1, background = false);



Example 4:

AustralianFlag() Example 4
include <boardgame_toolkit.scad>
AustralianFlag(100, 5, 4, 1, border = 1, solid_background = true);

Module: SwedenFlag()

Topics: Flags

Description:

Flag of Sweden to use for anything.

Arguments:

By Position What it does
length length of the flag
height height of the flag
background put in a blue background with stripes (default true)
border border to put on the flag (this goes outside the length) (default 0)
solid_background generate a solid background for MMU (default 0)
layer_thickness thickness of layers for MMU (default default_slicing_layer_height)

Example 1:

SwedenFlag() Example 1
include <boardgame_toolkit.scad>
SwedenFlag(100, 4);



Example 2:

SwedenFlag() Example 2
include <boardgame_toolkit.scad>
SwedenFlag(100, 4, border = 1);



Example 3:

SwedenFlag() Example 3
include <boardgame_toolkit.scad>
SwedenFlag(100, 4, background = false);




Module: UnitedStatesFlag()

Topics: Flags

Description:

Flag of the united states to use for anything.

Arguments:

By Position What it does
length length of the flag
white_height height of the white parts
red_height height of the red parts
blue_height height of the blue parts
background put in a blue background with stripes (default true)
border border to put on the flag (this goes outside the length) (default 0)
solid_background a solid background (setup for mmu)
layer_thickness thickness of layers for MMU (default default_slicing_layer_height)

Example 1:

UnitedStatesFlag() Example 1
include <boardgame_toolkit.scad>
UnitedStatesFlag(100, 4, 2, 1);



Example 2:

UnitedStatesFlag() Example 2
include <boardgame_toolkit.scad>
UnitedStatesFlag(100, 4, 2, 1, border = 1);



Example 3:

UnitedStatesFlag() Example 3
include <boardgame_toolkit.scad>
UnitedStatesFlag(100, 4, 2, 1, background = false);




Module: PortugeseFlag()

Topics: Flags

Description:

Flag of Portugal to use for anything.

Arguments:

By Position What it does
length length of the flag
height height of the flag
background put in a green/red background with stripes (default true)
border border to put on the flag (this goes outside the length) (default 0)

Example 1:

PortugeseFlag() Example 1
include <boardgame_toolkit.scad>
PortugeseFlag(100, 5);




Clone this wiki locally