Hi all,
I am new to using filters and so far haven’t had any luck applying them to a display.newText() object. Is this possible to do?
My goal is to create a text shadow that is blurred using the filter.blurGaussian corona effect.
Here is some code:
local newTextOptions = { text = self.textString, font = self.fontId, fontSize = self.fontSize, align = self.align, width = self.width, height = self.height, } self.shadowTextDisplayObject = display.newText(newTextOptions) self.shadowTextDisplayObject:setFillColor(0, 0, 0) self.shadowTextDisplayObject.fill.effect = "filter.blurGaussian" self.shadowTextDisplayObject.fill.effect.horizontal.blurSize = 100 self.shadowTextDisplayObject.fill.effect.vertical.blurSize = 100 self.view:insert(self.shadowTextDisplayObject)
However, this doesn’t seem to be working. Am I doing something wrong?
Thanks in advance.