Assign a colors to each pointers (#944)
I'm using the client id as a random number to index on the color array. So far it's been working better than using a sequential increment as the colors in the array are sorted by proximity. Also, it has the advantage that everyone in the room will see the same color for the same person.pull/945/head
parent
a6244e7602
commit
ead6a083d4
@ -0,0 +1,57 @@
|
||||
// https://yeun.github.io/open-color/
|
||||
export default {
|
||||
// Shade 0
|
||||
canvasBackground: [
|
||||
"#ffffff",
|
||||
"#f8f9fa",
|
||||
"#f1f3f5",
|
||||
"#fff5f5",
|
||||
"#fff0f6",
|
||||
"#f8f0fc",
|
||||
"#f3f0ff",
|
||||
"#edf2ff",
|
||||
"#e7f5ff",
|
||||
"#e3fafc",
|
||||
"#e6fcf5",
|
||||
"#ebfbee",
|
||||
"#f4fce3",
|
||||
"#fff9db",
|
||||
"#fff4e6",
|
||||
],
|
||||
// Shade 6
|
||||
elementBackground: [
|
||||
"transparent",
|
||||
"#ced4da",
|
||||
"#868e96",
|
||||
"#fa5252",
|
||||
"#e64980",
|
||||
"#be4bdb",
|
||||
"#7950f2",
|
||||
"#4c6ef5",
|
||||
"#228be6",
|
||||
"#15aabf",
|
||||
"#12b886",
|
||||
"#40c057",
|
||||
"#82c91e",
|
||||
"#fab005",
|
||||
"#fd7e14",
|
||||
],
|
||||
// Shade 9
|
||||
elementStroke: [
|
||||
"#000000",
|
||||
"#343a40",
|
||||
"#495057",
|
||||
"#c92a2a",
|
||||
"#a61e4d",
|
||||
"#862e9c",
|
||||
"#5f3dc4",
|
||||
"#364fc7",
|
||||
"#1864ab",
|
||||
"#0b7285",
|
||||
"#087f5b",
|
||||
"#2b8a3e",
|
||||
"#5c940d",
|
||||
"#e67700",
|
||||
"#d9480f",
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue