File size: 467 Bytes
3ed48fd
 
 
 
 
 
a812266
 
 
3ed48fd
 
 
 
 
a812266
3ed48fd
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { BaseEffect } from './base.js';

export class NeonEffect extends BaseEffect {
    constructor() {
        super();
        this.glowOptions = {
            color: '#ff69b4',  // ネγ‚ͺンピンク
            blur: 90,
            iterations: 12
        };
    }

    async setupContext(ctx, options) {
        ctx.font = `${options.fontSize}px "${options.font}"`;
        ctx.fillStyle = '#ff69b4';
        ctx.textBaseline = 'top';
    }
}