@@ -1010,15 +1010,15 @@ var Graphics = new Class({
10101010 *
10111011 * @param {(array|Phaser.Geom.Point[]) } points - The points to stroke.
10121012 * @param {boolean } [closeShape=false] - When `true`, the shape is closed by joining the last point to the first point.
1013- * @param {boolean } [closePath=true ] - When `true`, the path is closed before being stroked.
1013+ * @param {boolean } [closePath=false ] - When `true`, the path is closed before being stroked.
10141014 * @param {integer } [endIndex] - The index of `points` to stop drawing at. Defaults to `points.length`.
10151015 *
10161016 * @return {Phaser.GameObjects.Graphics } This Game Object.
10171017 */
10181018 strokePoints : function ( points , closeShape , closePath , endIndex )
10191019 {
10201020 if ( closeShape === undefined ) { closeShape = false ; }
1021- if ( closePath === undefined ) { closePath = true ; }
1021+ if ( closePath === undefined ) { closePath = false ; }
10221022 if ( endIndex === undefined ) { endIndex = points . length ; }
10231023
10241024 this . beginPath ( ) ;
@@ -1057,15 +1057,15 @@ var Graphics = new Class({
10571057 *
10581058 * @param {(array|Phaser.Geom.Point[]) } points - The points to fill.
10591059 * @param {boolean } [closeShape=false] - When `true`, the shape is closed by joining the last point to the first point.
1060- * @param {boolean } [closePath=true ] - When `true`, the path is closed before being stroked.
1060+ * @param {boolean } [closePath=false ] - When `true`, the path is closed before being stroked.
10611061 * @param {integer } [endIndex] - The index of `points` to stop at. Defaults to `points.length`.
10621062 *
10631063 * @return {Phaser.GameObjects.Graphics } This Game Object.
10641064 */
10651065 fillPoints : function ( points , closeShape , closePath , endIndex )
10661066 {
10671067 if ( closeShape === undefined ) { closeShape = false ; }
1068- if ( closePath === undefined ) { closePath = true ; }
1068+ if ( closePath === undefined ) { closePath = false ; }
10691069 if ( endIndex === undefined ) { endIndex = points . length ; }
10701070
10711071 this . beginPath ( ) ;
0 commit comments