typograph-editor-documentation
    Preparing search index...

    Function person_colors

    • One colour per person in the room, different for everyone while there are colours left (TYP-919). Whoever has been in the template longest keeps the colour of their token; someone whose colour is taken gets the first free one. Every window works this out from the same room state, so a person has the same colour on every screen, and someone arriving never changes the colour of the people already there.

      Parameters

      • states: Map<number, any>

      Returns Map<string, string>