Create StampConfig.js

This commit is contained in:
Richard Davey 2022-09-29 17:42:40 +01:00
parent cf5ef43932
commit 4b14d3d6c6

View 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.
*/