# Label Decorations
Shared symbol shapes and rendering primitives for [`gridfinity-bin-label`](../../gridfinity-bin-label/) and [`gridfinity-box-label`](../../gridfinity-box-label/). Adding a new icon shape to [`label-decorations.scad`](label-decorations.scad) makes it available to both labels at once.
## Usage
```scad
use <../lib/label-decorations/label-decorations.scad>
// 2D symbol centered at origin, fitting within a circle of diameter d
symbol_shape("hex_rounded", d = 7, stroke = 1);
// Extruded text or symbol positioned within a label
label_text(text_str, x, y, z, size, font, style, align, extrude_h);
label_symbol(name, x, y, z, size, stroke, extrude_h);
```
## Symbol Catalogue
Top-down screw head views (showing what the head looks like from above):
| Symbol | Value | Description |
|:---:|---|---|
|
| `hex_rounded` | Hex socket cap screw (round head with hex socket) |
|
| `hex_flat` | Hex bolt head (flat hexagonal head) |
|
| `phillips` | Phillips cross drive |
|
| `slotted` | Slotted (single-slot) drive |
|
| `torx` | Torx (six-pointed star) drive |
|
| `square` | Square (Robertson) drive |
|
| `pozidriv` | Pozidriv (Phillips + diagonal cross) drive |
Drive-bit shapes (just the drive symbol, without a surrounding head circle — visually lighter and pairs well with text):
| Symbol | Value | Description |
|:---:|---|---|
|
| `bit_phillips` | Phillips cross |
|
| `bit_slotted` | Slotted bar |
|
| `bit_hex` | Hex (Allen) |
|
| `bit_torx` | Torx star |
|
| `bit_square` | Square (Robertson) |
|
| `bit_pozidriv` | Pozidriv (Phillips + diagonal cross) |
Side-profile screw silhouettes (showing the screw from the side, head + threaded shaft):
| Symbol | Value | Description |
|:---:|---|---|
|
| `side_cap` | Hex socket cap screw — cylindrical head |
|
| `side_flat` | Countersunk flat head |
|
| `side_pan` | Pan head (rounded dome with skirt) |
|
| `side_button` | Button head (low rounded dome) |
|
| `side_hex` | Hex bolt with chamfered head |
Other:
| Symbol | Value | Description |
|:---:|---|---|
|
| `washer` | Washer (top-down annular ring) |
|
| `nut` | Hex nut (top-down hex with large thread hole) |
|
| `printer` | 3D printer silhouette (frame, print bed, gantry, nozzle) |
|
| `magnet` | Horseshoe magnet (U-shape with pole tips) |
|
| `battery` | Battery cell (upright body with terminal nub and +/- marks) |
## Regenerating Thumbnails
The symbol thumbnails in [`symbols/`](symbols/) are produced from [`symbols/render.scad`](symbols/render.scad). See the comments at the top of that file for the `openscad` invocation.