LogoMaker / effects /neon.js
SenY's picture
γ‚¨γƒ•γ‚§γ‚―γƒˆγ‚’θͺΏζ•΄
a812266
raw
history blame contribute delete
467 Bytes
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';
}
}