You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`brick`|`String`| Yes | The type of brick to use from the BRICKS enum/constants<br>**See:**[Supported Bricks](#supported-bricks)|`'PB_DefaultBrick'`|
91
+
|`material`|`String`| Yes | The material type to apply to bricks from the MATERIALS enum/constants<br>**See:**[Supported Materials](#supported-materials)|`'BMC_Plastic'`|
92
+
|`size`|`[Number, Number, Number]`| Yes | The dimensions of each brick as `[width, depth, height]`|`[2, 2, 6]`|
93
+
|`simpleDirection`|`String`| No | Orientation of the brick placement<br>**Values:**`"vertical"` or `"horizontal"`|`'vertical'`|
94
+
|`description`|`String`| No | Description for the save file |`'It is Dawson!'`|
95
+
|`saveName`|`String`| No | Name for the downloaded file (browser only) |`'doggy.brs'`|
96
+
97
+
### Return Value
98
+
99
+
| Type | Description |
100
+
|------|-------------|
101
+
|`Blob`| A Blob object containing the .brs file data that can be saved or downloaded |
102
+
103
+
## Supported Bricks
104
+
105
+
The `BRICKS` constant is a named export containing all supported brick types:
106
+
107
+
```javascript
108
+
import { BRICKS } from'img2brs';
109
+
// BRICKS is an array of supported brick types
110
+
```
111
+
112
+
-`PB_DefaultBrick`
113
+
-`PB_DefaultTile`
114
+
-`PB_DefaultSideWedge`
115
+
-`PB_DefaultSideWedgeTile`
116
+
-`PB_DefaultWedge`
117
+
-`PB_DefaultMicroBrick`
118
+
-`PB_DefaultMicroWedge`
119
+
120
+
121
+
## Supported Materials
122
+
123
+
The `MATERIALS` constant is a named export containing all supported material types:
124
+
125
+
```javascript
126
+
import { MATERIALS } from'img2brs';
127
+
// MATERIALS is an array of supported material types
0 commit comments