Created
June 7, 2021 20:11
-
-
Save GoodBoyNinja/d24a4bfff30144eec7c3e56c8092bbbd to your computer and use it in GitHub Desktop.
Pass in a staticText object and an rgba color array [x,x,x,x] to paint it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FillText(textOBJ, color) { | |
if (textOBJ && color) { | |
var g = textOBJ.graphics; | |
g.foregroundColor = g.newPen(g.PenType.SOLID_COLOR, color, 1); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment