# Hexagonal baubles

[![sverspecht](https://cuttle-uploads.imgix.net/164598/0f57c8b07b2f40ae5231db728839e4209e0d44b7288bc9be8529a53785b9b3a1.jpg?auto=compress,format&q=80&fit=crop&width=32&height=32&dpr=1)Sébastien V.](https://cuttle.xyz/@sverspecht)

Nov 16

Pro

![](https://cuttle-uploads.imgix.net/164598/8a9839764eb01e2e97237f8bdc47bfd055cd2e3470e12f9571ebcff0bfda4605.jpg?auto=compress,format&q=80&fit=max&width=700&height=1280&dpr=1)

## Make your ornaments so mathematics!

Create your own hexagonal Christmas baubles, each one unique and fully customisable.

Every bauble is generated from a seed, so one template gives you an endless collection of ornaments: snowflakes, stars, isometric cubes, rosettes, spider webs and petals, each with its own line work. Hang a different one on every branch of the tree, or cut a row of them that fit edge to edge into a garland panel.

## Tiling

You probably want to create many of these. Use this below for tiling of the plane.

## Parameters

-   `Height` (distance, default `100`): outer height of the hexagon before little rounded applied by usage of `LineThickness`
    
-   `LineThickness` (distance, default `3`): thickness of every line. Capped at `Height / 8`.
    
-   `Add Hole` and (after checking)`Hole Size` : diameter of hole added for hang  
      
    
-   `Seed` et `Start Seed`(number, default `1`): changes the pattern (or serie of patterns).
    
-   `Repetitions` : number of version horizontally (x) et vertically (y)
    

## Looking for a nice way to present those ornaments?

[![Christmas Tree Hexagonal](https://cuttle-uploads.imgix.net/164598/1f3ad59c4e50308426a0114bea0921ca2f34140ed87529989ef8ca2fd3278a45.jpg?auto=compress,format&q=80&fit=fill&fill=blur&width=400&height=225&dpr=1)](https://cuttle.xyz/@sverspecht/Christmas-Tree-Hexagonal-ladud5CwAGbL)

[![sverspecht](https://cuttle-uploads.imgix.net/164598/0f57c8b07b2f40ae5231db728839e4209e0d44b7288bc9be8529a53785b9b3a1.jpg?auto=compress,format&q=80&fit=crop&width=32&height=32&dpr=1) Sébastien V.](https://cuttle.xyz/@sverspecht)

[Christmas Tree Hexagonal](https://cuttle.xyz/@sverspecht/Christmas-Tree-Hexagonal-ladud5CwAGbL)

## Advanced

For the more adventurous users, you can deep into `styles` and (re)take control over randomness. You can just specify on family, density, center or faces by using selectors or fully describe which series you want to get by setting `styles` by choosing them "All in One".

## The `styles` parameter

Without `styles`, every option is picked at random from `seed`. Each key you set limits the pick to the values you list; the other keys keep their random pick.

### Syntax

Any of these forms works:

```js
"families: snowflake|star; density: dense"         // text, entries separated by ; or a new line
["families: cube", "faces=chevrons nested"]        // array of "key: value" or "key=value"
{ families: ["web", "petals"], hanger: "ring" }    // object
```

Separate several values with `|`, `,`, `/` or a space.

Repeat a value to make it more likely: `"families: star star cube"` draws a star two times out of three.

Keys and values ignore case, spaces, hyphens and underscores.

An unknown key or value is skipped and reported in the console.

### `families`: the pattern

-   `snowflake`: six spokes with free-ended branches, sometimes an inner hexagon.
    
-   `star`: spokes with chevrons that join or cross each other, forming stars and diamonds.
    
-   `cube`: three faces of an isometric cube, each filled with lines (see `faces`).
    
-   `rosette`: straight-pointed six-point stars, nested or crossed.
    
-   `web`: arcs stretched between the spokes, like a spider web.
    
-   `petals`: flowers made of circular arcs.
    

_Default: all six, with_ `snowflake` and `star` twice as likely as the others.

### `density`: the amount of lines

-   `light`: fewest lines.
    
-   `medium`: balanced.
    
-   `dense`: most lines.
    

_Default:_ `medium` half of the time, `light` or `dense` otherwise.

The number of lines is reduced automatically when `lineThickness` is large compared with `height`.

### `center`: the middle of the ornament

-   `auto`: depends on the family. A disc for `snowflake`, `star` and `petals`, nothing for `cube`, `rosette` and `web`.
    
-   `disc`: a solid disc at the center.
    
-   `none`: no disc.
    

_Default:_ `auto`.

### `faces`: the fill of the cube faces

Only used by the `cube` family.

-   `chevrons`: branches growing from the three edges, like a three-armed snowflake.
    
-   `nested`: nested corners in each face.
    
-   `parallel`: parallel lines in each face, giving a pinwheel effect.
    
-   `stripes`: two striped side faces and one nested face._Default: all four, with_ `chevrons` twice as likely as the others.
    

## Examples

```js
{ families: "petals", density: ["light", "medium"] }
```

```js
"families: star|rosette; center: none"
```

```js
"families: cube; faces: stripes;"
```

```js
"families: snowflake; density: dense"
```

Makes & Comments

You must be a member of Cuttle Pro to post in this area.

LICENSE

To make or sell physical items [upgrade to Cuttle Pro](https://cuttle.xyz/pricing).

PRO

Upgrade to Cuttle Pro to create physical items for personal use.

PRO

Upgrade to Cuttle Pro to sell physical items derived from this template.

You may not sell or give away digital items (like SVGs) derived from this template. [Learn more](https://cuttle.xyz/learn/licensing).