Skip to content

Commit a63acd0

Browse files
committed
Updated docs.
1 parent 9331c15 commit a63acd0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/gameobjects/graphics/Graphics.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,11 @@ var Graphics = new Class({
323323
*
324324
* When filling a triangle only the first 3 color values provided are used for the 3 points of a triangle.
325325
*
326+
* This feature is best used only on rectangles and triangles. All other shapes will give strange results.
327+
*
326328
* Note that for objects such as arcs or ellipses, or anything which is made out of triangles, each triangle used
327329
* will be filled with a gradient on its own. There is no ability to gradient fill a shape or path as a single
328-
* item at this time.
330+
* entity at this time.
329331
*
330332
* @method Phaser.GameObjects.Graphics#fillGradientStyle
331333
* @webglOnly
@@ -358,9 +360,11 @@ var Graphics = new Class({
358360
* The gradient is used to color all stroked shapes and paths drawn after calling this method.
359361
* If you wish to turn a gradient off, call `lineStyle` and provide a new single line color.
360362
*
363+
* This feature is best used only on single lines. All other shapes will give strange results.
364+
*
361365
* Note that for objects such as arcs or ellipses, or anything which is made out of triangles, each triangle used
362366
* will be filled with a gradient on its own. There is no ability to gradient stroke a shape or path as a single
363-
* item at this time.
367+
* entity at this time.
364368
*
365369
* @method Phaser.GameObjects.Graphics#lineGradientStyle
366370
* @webglOnly

0 commit comments

Comments
 (0)