import SwiftUI

func colorForLanguage(_ language: String) -> Color {
    var hash: UInt64 = 5381
    for byte in language.utf8 {
        hash = ((hash &<< 5) &+ hash) &+ UInt64(byte)
    }
    let hue = Double(hash % 360) / 360.0
    return Color(hue: hue, saturation: 0.6, brightness: 0.75)
}
