1
0
Fork 0
freesewing/markdown/dev/reference/api/macros/sprinkle/en.md

25 lines
847 B
Markdown
Raw Normal View History

---
title: sprinkle
---
2022-02-19 08:04:25 +01:00
The `sprinkle` macro facilitates adding snippets to your pattern in bulk.\
It is by the [sprinkle plugin](/reference/plugins/sprinkle).
<Example part="plugin_sprinkle">
Example of button snippets sprinkled on a pattern by this macro
</Example>
```js
macro('sprinkle', {
snippet: 'button',
on: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']
})
```
2022-02-19 08:04:25 +01:00
| Property | Default | Type | Description |
|------------:|---------|------------------|-------------|
| `snippet` | | String | Name of the snippet to sprinkle |
| `on` | `[]` | Array of strings | An array with **the names** of points to add the snippet on |
| `scale` | 1 | number | Scale for the individual snippets |
| `rotate` | 0 | number | Rotation for the individual snippets |