mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
Create StampConfig.js
This commit is contained in:
parent
cf5ef43932
commit
4b14d3d6c6
1 changed files with 15 additions and 0 deletions
15
src/textures/typedefs/StampConfig.js
Normal file
15
src/textures/typedefs/StampConfig.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* An object containing the position and color data for a single pixel in a CanvasTexture.
|
||||
*
|
||||
* @typedef {object} Phaser.Types.Textures.StampConfig
|
||||
* @since 3.60.0
|
||||
*
|
||||
* @property {number} [alpha=1] - The alpha value used by the stamp.
|
||||
* @property {number} [tint=0xffffff] - The tint color value used by the stamp. WebGL only.
|
||||
* @property {number} [angle=0] - The angle of the stamp in degrees. Rotation takes place around its origin.
|
||||
* @property {number} [rotation=0] - The rotation of the stamp in radians. Rotation takes place around its origin.
|
||||
* @property {number} [scaleX=1] - The horizontal scale of the stamp.
|
||||
* @property {number} [scaleY=1] - The vertical scale of the stamp.
|
||||
* @property {number} [originX=0.5] - The horizontal origin of the stamp. 0 is the left, 0.5 is the center and 1 is the right.
|
||||
* @property {number} [originY=0.5] - The vertical origin of the stamp. 0 is the top, 0.5 is the center and 1 is the bottom.
|
||||
*/
|
Loading…
Reference in a new issue