Skip to content

Example 094: Component Colors and Card Artwork

Distinguish two card instances and green markers with inherited colors and local card artwork. The built-in image shows the documented color fallback; F3D receives separate front and back textures.

BGI / EXAMPLE 094Dimensions in mm
Rendered assembled view of Component Colors and Card Artwork
The assembled insert.

This section shows the inherited component colors and local card pictures:

preview:
contents: generic
content_visuals:
markers: rect_token
content_styles:
defaults:
cards: {color: "#f3dfaa"}
rect_token: {color: "#348c69"}
overrides:
cards:
front_image: assets/component-appearance/front.png

The shaded lines mark that section in the complete YAML. This is the same project file linked below.

schema_version: 1
readme: "Distinguish two card instances and green markers with inherited colors and local card artwork. The built-in image shows the documented color fallback; F3D receives separate front and back textures."
project:
id: component-appearance
name: Component Colors and Card Artwork
box:
inner_mm: [250, 120, 35]
material:
profile: de-mdf-3mm
overrides:
thickness_mm: 3
kerf_mm: 0.16
components:
- id: cards
kind: cards
instances: [red-cards, blue-cards]
count: 20
card_outer_mm: [66, 91]
effective_thickness_mm: 0.60
split_counts: [20]
allowance_total_mm: [2, 2, 2]
orientations: [flat_xy, flat_yx]
- id: markers
kind: objects
count: 4
object_outer_mm: [20, 20, 3]
arrangement: [2, 2, 1]
object_gap_mm: [2, 2, 0]
allowance_total_mm: [2, 2, 2]
orientations: [xyz]
assemblies:
- id: tray
kind: grid
construction: open_grid_box
assembly: glue_allowed
members: [red-cards, blue-cards, markers]
interior:
id: contents
kind: split
axis: x
clear_mm: [236, 110, 28]
first:
id: card-stack-one
kind: compartment
clear_mm: [70, 110, 28]
contents: [red-cards]
second:
id: remainder
kind: split
axis: x
clear_mm: [163, 110, 28]
first:
id: card-stack-two
kind: compartment
clear_mm: [70, 110, 28]
contents: [blue-cards]
second:
id: marker-compartment
kind: compartment
clear_mm: [90, 110, 28]
contents: [markers]
layout:
mode: manual
construction_mode: full_box
placements:
- id: tray
origin_mm: [2, 2]
rotation_deg: 0
preview:
contents: generic
content_visuals:
markers: rect_token
content_styles:
defaults:
cards: {color: "#f3dfaa"}
rect_token: {color: "#348c69"}
overrides:
cards:
front_image: assets/component-appearance/front.png
blue-cards:
color: "#bedcf4"
back_image: assets/component-appearance/back.png

Open 094-component-appearance.bgi.yaml and save a copy if you want to edit it in your own folder. Follow Plan your own layout to validate and build it.

Save these files beside the YAML in the listed subfolders:

The built-in preview and SCAD use the configured colors. F3D uses the pictures; its actual render should be inspected separately.