UNPKG

@phaserjs/phaser

Version:
10 lines (9 loc) 246 B
export function SetBackgroundStyle(style, cornerRadius, ...text) { text.forEach((entity) => { entity.backgroundStyle = style; if (cornerRadius !== null) { entity.cornerRadius = cornerRadius; } entity.updateText(); }); }