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:
John Hyde 2023-08-30 13:07:33 -07:00 committed by GitHub
parent ef7c06d639
commit e9808895ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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