/**
 * Selectable backgrounds. Each `texture` is a full-screen image painted with
 * the Canvas2D API in BootScene.createBackgroundTextures (rich gradients,
 * glows, bokeh, stars). They are drawn fixed (no tiling) so there are no seams.
 */
export const BACKGROUNDS = [
  { id: 'nebula', name: 'Nebula', texture: 'bg_nebula' },
  { id: 'aurora', name: 'Aurora', texture: 'bg_aurora' },
  { id: 'sunset', name: 'Sunset', texture: 'bg_sunset' },
  { id: 'ocean', name: 'Ocean', texture: 'bg_ocean' },
  { id: 'dream', name: 'Dreamscape', texture: 'bg_dream' },
  { id: 'monad', name: 'Monad', texture: 'bg_monad' },
];

export const DEFAULT_BACKGROUND = 'nebula';

export function getBackground(id) {
  return BACKGROUNDS.find((b) => b.id === id) || BACKGROUNDS[0];
}
