Skip to content

Commit 9d1124e

Browse files
committed
Add docs about Range.tiles property
1 parent 0be7c0c commit 9d1124e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

api/range.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,22 @@ Example to select the colors with index 0 and 3 in the color bar:
9595
app.range.colors = { 0, 3 }
9696
```
9797

98+
## Range.tiles
99+
100+
```lua
101+
local selectedTiles = app.range.tiles
102+
app.range.tiles = { ... }
103+
```
104+
105+
Gets or sets the array of selected tile entries in the [color bar](https://www.aseprite.org/docs/color-bar/)
106+
when we are in a [tilemap layer](https://www.aseprite.org/docs/tilemap/).
107+
Each element of the array is an integer (the tile index).
108+
109+
Example to select tiles with index 0 and 3 in the color bar:
110+
```lua
111+
app.range.tiles = { 0, 3 }
112+
```
113+
98114
## Range.slices
99115

100116
```lua

0 commit comments

Comments
 (0)