Skip to content

Commit 79f550b

Browse files
committed
updating comments: default color and method name
1 parent 0694dab commit 79f550b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ 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
*/
786786
Phaser.Physics.Arcade.Body.render = function (context, body, color, filled) {

src/utils/Debug.js

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

0 commit comments

Comments
 (0)