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
Copy file name to clipboardExpand all lines: lua/docs/content/reference/shape.yml
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,22 @@ properties:
165
165
type: "string"
166
166
description: |
167
167
Original item name of this shape. If it was created programmatically, item name is `nil`.
168
+
169
+
- name: "DrawMode"
170
+
type: "table"
171
+
description: |
172
+
Enable and configure draw modes using this property. Setting this to `nil` disables all draw modes.
173
+
174
+
Currently, one draw mode is supported: `{ color=<Color or table of options> }`,
175
+
- `color` as a [Color](/reference/color), applied multiplicatively to the whole shape. Alternatively, it can be set to a table of options (see below).
176
+
177
+
Color options are,
178
+
- `multiplicative` as a [Color](/reference/color), applied multiplicatively to the whole shape.
179
+
- `additive` as a [Color](/reference/color), applied additively to the whole shape.
180
+
181
+
The additive and multiplicative colors are a shortcut to modify shape colors as a whole, but it could also be done by adding or multiplying each colors of the shape palette.
182
+
183
+
All these options can be set at runtime or animated individually.
0 commit comments