Skip to content

Commit 6ce1831

Browse files
committed
Merge pull request phaserjs#971 from psalaets/issue-970
reorder param list of Phaser.Physics.Arcade.Body.render
2 parents d0b756b + 79f550b commit 6ce1831

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,13 +777,13 @@ Object.defineProperty(Phaser.Physics.Arcade.Body.prototype, "y", {
777777
/**
778778
* Render Sprite Body.
779779
*
780-
* @method Phaser.Physics.Arcade.Body#renderDebug
780+
* @method Phaser.Physics.Arcade.Body#render
781781
* @param {object} context - The context to render to.
782782
* @param {Phaser.Physics.Arcade.Body} body - The Body to render the info of.
783-
* @param {string} [color='rgb(255,255,255)'] - color of the debug info to be rendered. (format is css color string).
783+
* @param {string} [color='rgba(0,255,0,0.4)'] - color of the debug info to be rendered. (format is css color string).
784784
* @param {boolean} [filled=true] - Render the objected as a filled (default, true) or a stroked (false)
785785
*/
786-
Phaser.Physics.Arcade.Body.render = function (context, body, filled, color) {
786+
Phaser.Physics.Arcade.Body.render = function (context, body, color, filled) {
787787

788788
if (typeof filled === 'undefined') { filled = true; }
789789

src/utils/Debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ Phaser.Utils.Debug.prototype = {
694694
*
695695
* @method Phaser.Utils.Debug#body
696696
* @param {Phaser.Sprite} sprite - The sprite whos body will be rendered.
697-
* @param {string} [color='rgb(255,255,255)'] - color of the debug info to be rendered. (format is css color string).
697+
* @param {string} [color='rgba(0,255,0,0.4)'] - color of the debug info to be rendered. (format is css color string).
698698
* @param {boolean} [filled=true] - Render the objected as a filled (default, true) or a stroked (false)
699699
*/
700700
body: function (sprite, color, filled) {

0 commit comments

Comments
 (0)