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
GameObjects.Shape.Grid would render a white fill even if you passed undefined as the fill color in the constructor. It now doesn't render cells if no fill color is given.
* Sets the fill color and alpha level the grid cells will use when rendering.
169
-
*
170
-
* If this method is called with no values then the grid cells will not be rendered,
162
+
*
163
+
* If this method is called with no values then the grid cells will not be rendered,
171
164
* however the grid lines and alternating cells may still be.
172
-
*
165
+
*
173
166
* Also see the `setOutlineStyle` and `setAltFillStyle` methods.
174
-
*
167
+
*
175
168
* This call can be chained.
176
169
*
177
170
* @method Phaser.GameObjects.Grid#setFillStyle
178
171
* @since 3.13.0
179
-
*
172
+
*
180
173
* @param {number} [fillColor] - The color the grid cells will be filled with, i.e. 0xff0000 for red.
181
174
* @param {number} [fillAlpha=1] - The alpha the grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.
182
175
*
@@ -202,16 +195,16 @@ var Grid = new Class({
202
195
203
196
/**
204
197
* Sets the fill color and alpha level that the alternating grid cells will use.
205
-
*
198
+
*
206
199
* If this method is called with no values then alternating grid cells will not be rendered in a different color.
207
-
*
200
+
*
208
201
* Also see the `setOutlineStyle` and `setFillStyle` methods.
209
-
*
202
+
*
210
203
* This call can be chained.
211
204
*
212
205
* @method Phaser.GameObjects.Grid#setAltFillStyle
213
206
* @since 3.13.0
214
-
*
207
+
*
215
208
* @param {number} [fillColor] - The color the alternating grid cells will be filled with, i.e. 0xff0000 for red.
216
209
* @param {number} [fillAlpha=1] - The alpha the alternating grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.
217
210
*
@@ -237,17 +230,17 @@ var Grid = new Class({
237
230
238
231
/**
239
232
* Sets the fill color and alpha level that the lines between each grid cell will use.
240
-
*
233
+
*
241
234
* If this method is called with no values then the grid lines will not be rendered at all, however
242
235
* the cells themselves may still be if they have colors set.
243
-
*
236
+
*
244
237
* Also see the `setFillStyle` and `setAltFillStyle` methods.
245
-
*
238
+
*
246
239
* This call can be chained.
247
240
*
248
241
* @method Phaser.GameObjects.Grid#setOutlineStyle
249
242
* @since 3.13.0
250
-
*
243
+
*
251
244
* @param {number} [fillColor] - The color the lines between the grid cells will be filled with, i.e. 0xff0000 for red.
252
245
* @param {number} [fillAlpha=1] - The alpha the lines between the grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.
0 commit comments