// Playtube-Marke (siehe Playtube tools/generate_icon.py): Verlauf violett -> pink, weisses Symbol. export const BRAND_FROM = [124, 58, 237]; export const BRAND_TO = [236, 72, 153]; export const WHITE = '#ffffff'; export const DIM_BG = '#2b2540'; export const DIM_GLYPH = '#9b93b8'; export const DARK_BG = '#171b24'; /** Diagonaler Verlauf ueber eine Leinwand der Kantenlaenge `size` (Farbfunktion fuer Canvas.fill). */ export function brandGradient(size) { return (x, y) => { const t = Math.max(0, Math.min(1, (x + y) / (2 * size))); return BRAND_FROM.map((from, i) => Math.round(from + (BRAND_TO[i] - from) * t)); }; }