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
BitmapText.setWordTint is a new method that allows you to set a tint color (either additive, or fill) on all matching words within a static Bitmap Text. You can specify the word by string, or numeric offset, and the number of replacements to tint.
* @param {(string|number)} word - The word to search for. Either a string, or an index of the word in the words array.
600
+
* @param {number} [count=1] - The number of matching words to tint. Pass -1 to tint all matching words.
601
+
* @param {boolean} [tintFill=false] - Use a fill-based tint (true), or an additive tint (false)
602
+
* @param {integer} [topLeft=0xffffff] - The tint being applied to the top-left of the word. If not other values are given this value is applied evenly, tinting the whole word.
603
+
* @param {integer} [topRight] - The tint being applied to the top-right of the word.
604
+
* @param {integer} [bottomLeft] - The tint being applied to the bottom-left of the word.
605
+
* @param {integer} [bottomRight] - The tint being applied to the bottom-right of the word.
0 commit comments