📜  转模糊 html 画布 - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:57.633000             🧑  作者: Mango

代码示例1
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');

ctx.filter = 'blur(4px)';
ctx.font = '48px serif';
ctx.fillText('Hello world', 50, 100);