0.0.2 • Published 3 years ago
@pxwlab/cb-user-colors v0.0.2
User Color Module for Together
This module exposes a single function get a users color based on his index in the room:
const getUserColor = require('@pxwlab/cb-user-colors')
const userColor = await getUserColor({ userIndex: 2 })
console.log(userColor) // => {"name":"yellow","value":"#aea063"}