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
* @param {number} [direction=0] - The direction in which to scan for the first pixel. 0 = top to bottom, 1 = bottom to top, 2 = left to right and 3 = right to left.
843
-
* @return {object} Returns an object containing the colour of the pixel in the `r`, `g` and `b` properties and the location in the `x` and `y` properties.
843
+
* @return {object} Returns an object containing the color of the pixel in the `r`, `g` and `b` properties and the location in the `x` and `y` properties.
* @param {number} [scaleX=1] - The horizontal scale factor of the block. A value of 1 means no scaling. 2 would be twice the size, and so on.
990
990
* @param {number} [scaleY=1] - The vertical scale factor of the block. A value of 1 means no scaling. 2 would be twice the size, and so on.
991
991
* @param {number} [alpha=1] - The alpha that will be set on the context before drawing. A value between 0 (fully transparent) and 1, opaque.
992
-
* @param {number} [blendMode=null] - The composite blend mode that will be used when drawing. The default is no blend mode at all.
992
+
* @param {string} [blendMode=null] - The composite blend mode that will be used when drawing. The default is no blend mode at all. This is a Canvas globalCompositeOperation value such as 'lighter' or 'xor'.
993
993
* @param {boolean} [roundPx=false] - Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.
994
994
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
* @param {number} x - The destination x coordinate to copy the image to.
1170
1170
* @param {number} y - The destination y coordinate to copy the image to.
1171
1171
* @param {number} [alpha=1] - The alpha that will be set on the context before drawing. A value between 0 (fully transparent) and 1, opaque.
1172
-
* @param {number} [blendMode=null] - The composite blend mode that will be used when drawing. The default is no blend mode at all.
1172
+
* @param {string} [blendMode=null] - The composite blend mode that will be used when drawing. The default is no blend mode at all. This is a Canvas globalCompositeOperation value such as 'lighter' or 'xor'.
1173
1173
* @param {boolean} [roundPx=false] - Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.
1174
1174
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
* @param {number} [y=0] - The y coordinate to translate to before drawing. If not specified it will default to `source.y`.
1191
1191
* @param {number} [width] - The new width of the Sprite being copied. If not specified it will default to `source.width`.
1192
1192
* @param {number} [height] - The new height of the Sprite being copied. If not specified it will default to `source.height`.
1193
-
* @param {number} [blendMode=null] - The composite blend mode that will be used when drawing the Sprite. The default is no blend mode at all.
1193
+
* @param {string} [blendMode=null] - The composite blend mode that will be used when drawing. The default is no blend mode at all. This is a Canvas globalCompositeOperation value such as 'lighter' or 'xor'.
1194
1194
* @param {boolean} [roundPx=false] - Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.
1195
1195
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
* @param {Phaser.Group} group - The Group to draw onto this BitmapData.
1213
-
* @param {number} [blendMode=null] - The composite blend mode that will be used when drawing the Group children. The default is no blend mode at all.
1213
+
* @param {string} [blendMode=null] - The composite blend mode that will be used when drawing. The default is no blend mode at all. This is a Canvas globalCompositeOperation value such as 'lighter' or 'xor'.
1214
1214
* @param {boolean} [roundPx=false] - Should the x and y values be rounded to integers before drawing? This prevents anti-aliasing in some instances.
1215
1215
* @return {Phaser.BitmapData} This BitmapData object for method chaining.
0 commit comments