tobogganSe connecter

starfleet-ui

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

BATMAN!868a50c · il y a 2 sem.
6 lignes · 230 octetsBrut · Historique
1import { hash } from '$lib/assets/manifest';
2
3/** Consistent color per federation tag (shared by galaxy overlay and panels). */
4export function federationColor(tag: string): string {
5 return `hsl(${hash(tag) % 360}, 70%, 55%)`;
6}