Hello guys.
Is there any way to apply effects like blur on display.newText ?
Option with display.capture not suitable because text will be physical object and captured object is not smooth when rotating.
Thanks
Hello guys.
Is there any way to apply effects like blur on display.newText ?
Option with display.capture not suitable because text will be physical object and captured object is not smooth when rotating.
Thanks
Yay for snapshots:
local text = display.newText({ text = "Can I borrow your space pencil?", font = "Menlo", fontSize = 13 }) text:setFillColor(1, 1, 0) local snapshot = display.newSnapshot(text.width \* 1.5, text.height \* 1.5) snapshot.group:insert(text) snapshot.x, snapshot.y = display.contentCenterX, display.contentCenterY snapshot:invalidate() snapshot.fill.effect = "filter.blurGaussian" snapshot.fill.effect.horizontal.blurSize = 2 snapshot.fill.effect.horizontal.sigma = 140 snapshot.fill.effect.vertical.blurSize = 2 snapshot.fill.effect.vertical.sigma = 140
Many thanks to you :rolleyes:
Yay for snapshots:
local text = display.newText({ text = "Can I borrow your space pencil?", font = "Menlo", fontSize = 13 }) text:setFillColor(1, 1, 0) local snapshot = display.newSnapshot(text.width \* 1.5, text.height \* 1.5) snapshot.group:insert(text) snapshot.x, snapshot.y = display.contentCenterX, display.contentCenterY snapshot:invalidate() snapshot.fill.effect = "filter.blurGaussian" snapshot.fill.effect.horizontal.blurSize = 2 snapshot.fill.effect.horizontal.sigma = 140 snapshot.fill.effect.vertical.blurSize = 2 snapshot.fill.effect.vertical.sigma = 140
Many thanks to you :rolleyes: