diff --git a/elements/userlist.js b/elements/userlist.js index 5ba3b06..6da2cd8 100644 --- a/elements/userlist.js +++ b/elements/userlist.js @@ -1,4 +1,5 @@ import { withComponent, props } from 'skatejs'; +import interpolate from 'color-interpolate'; const Component = withComponent(); class UserList extends Component { @@ -71,11 +72,13 @@ class UserList extends Component { render({ data }) { const el = document.createElement('div'); + const colormap = interpolate(['blue', 'green', 'yellow', 'red']); + const colorIndex = Math.min(data.length / 22, 22); el.className = 'terminal'; el.innerHTML = `