/ proof-of-concept / midiboot
Sign in
proof-of-concept / midiboot
midiboot / src / components / colors.ts
5 lines · 273 BCodeBlameHistory
0ad1ec1midiboot: in-browser MIDI workstation with pluggable instrumentsJeremy Magland 1export const TRACK_COLORS = ['#5aa9e6', '#e6a15a', '#7ce65a', '#e65a8f', '#b45ae6', '#5ae6d0', '#e6d05a', '#e65a5a'];
3export function trackColor(index: number): string {
4 return TRACK_COLORS[((index % TRACK_COLORS.length) + TRACK_COLORS.length) % TRACK_COLORS.length];
5}
↑↓ move↵openescclose