mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Update InputConfiguration.js: Clarify alphaTolerance
This change adds documentation to make it clear that alphaTolerance is a value between 0 and 255, rather than 0 and 1.
This commit is contained in:
parent
ef7c06d639
commit
e9808895ae
1 changed files with 1 additions and 1 deletions
|
@ -9,5 +9,5 @@
|
|||
* @property {boolean} [useHandCursor=false] - If `true` the Interactive Object will set the `pointer` hand cursor when a pointer is over it. This is a short-cut for setting `cursor: 'pointer'`.
|
||||
* @property {string} [cursor] - The CSS string to be used when the cursor is over this Interactive Object.
|
||||
* @property {boolean} [pixelPerfect=false] - If `true` the a pixel perfect function will be set for the hit area callback. Only works with image texture based Game Objects, not Render Textures.
|
||||
* @property {number} [alphaTolerance=1] - If `pixelPerfect` is set, this is the alpha tolerance threshold value used in the callback.
|
||||
* @property {number} [alphaTolerance=1] - If `pixelPerfect` is set, this is the alpha tolerance threshold value used in the callback. A value of 255 will match only fully opaque pixels.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue