html5画布上的发光效果?
是否可以在已经绘制的画布上添加发光效果而无需自己计算? (使用渐变、阴影或其他东西...)
我尝试通过将画布作为图像绘制到不同的画布上并在添加阴影的情况下将其绘制回来来添加发光效果。 它的问题在于它取决于阴影周围的像素数量 - 因为它使图像模糊 - 所以这还不够好。
Is it possible to add a glow effect to an already drawn canvas without having to calculate it myself? (Using gradients, shadow or something...)
I have tried adding a glow by drawing the canvas as an image to a different canvas and drawing it back with a shadow added.
The problem with it is that it depends on the amount of pixels around the shadow - because it blurs the image - so that is not good enough.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个网站介绍了画布文本的发光效果以及其他印刷效果 此处。
这是发光效果的要点:
There is a website that goes over the glow effect along with other typographic effects for canvas text here.
Here's the gist of the glow effect: