mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -126,6 +126,7 @@ module.exports = class CanvasUtil {
|
||||
}
|
||||
|
||||
static motionBlur(ctx, image, x, y, width, height) {
|
||||
ctx.drawImage(image, x, y, width, height);
|
||||
ctx.globalAlpha = 0.1;
|
||||
for (let i = 0; i < 10; ++i) ctx.drawImage(image, x + i, y, width, height);
|
||||
ctx.globalAlpha = 1;
|
||||
|
||||
Reference in New Issue
Block a user