Skip to content

Instantly share code, notes, and snippets.

@GoodBoyNinja
Created June 7, 2021 20:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GoodBoyNinja/d24a4bfff30144eec7c3e56c8092bbbd to your computer and use it in GitHub Desktop.
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
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