]> nos-oignons.net Git - website.git/commitdiff
Use Viridis to create a nicer color scale
authorLunar <lunar@anargeek.net>
Mon, 13 Feb 2023 23:02:34 +0000 (00:02 +0100)
committerLunar <lunar@anargeek.net>
Mon, 13 Feb 2023 23:02:34 +0000 (00:02 +0100)
assets/relays.js

index 1f4ff41f7da7813409e1a1e0e030df2ec404fcb0..45d36b1bc03084aaf133206454c20eb7646ddaaf 100644 (file)
@@ -1,46 +1,57 @@
-// Colors from https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md
+// Colors are coming from Viridis: https://sjmgarnier.github.io/viridisLite/reference/viridis.html
+//
+// We output 32 colors so we can have a similar color for instances on the same relay.
+// > viridis(32)
+//  [1] "#440154FF" "#470D60FF" "#48196BFF" "#482475FF"
+//  [5] "#472E7CFF" "#453882FF" "#424186FF" "#3E4B8AFF"
+//  [9] "#3A548CFF" "#365D8DFF" "#32658EFF" "#2E6D8EFF"
+// [13] "#2B758EFF" "#287D8EFF" "#25848EFF" "#228C8DFF"
+// [17] "#1F948CFF" "#1E9C89FF" "#20A386FF" "#25AB82FF"
+// [18] "#2EB37CFF" "#3ABA76FF" "#48C16EFF" "#58C765FF"
+// [25] "#6ACD5BFF" "#7ED34FFF" "#93D741FF" "#A8DB34FF"
+// [29] "#BEDF26FF" "#D4E21AFF" "#E9E51AFF" "#FDE725FF"
 var nos_oignons_relays = [
        { name: "marcuse1",
          fingerprint: "EFAE44728264982224445E96214C15F9075DEE1D",
 var nos_oignons_relays = [
        { name: "marcuse1",
          fingerprint: "EFAE44728264982224445E96214C15F9075DEE1D",
-         color: "#1f77b4",
+         color: "#440154",
     }, { name: "marcuse2",
          fingerprint: "C656B41AEFB40A141967EBF49D6E69603C9B4A11",
     }, { name: "marcuse2",
          fingerprint: "C656B41AEFB40A141967EBF49D6E69603C9B4A11",
-         color: "#aec7e8",
+         color: "#470D60",
     }, { name: "ekumen",
          fingerprint: "9BA84E8C90083676F86C7427C8D105925F13716C",
     }, { name: "ekumen",
          fingerprint: "9BA84E8C90083676F86C7427C8D105925F13716C",
-         color: "#ff7f0e",
+         color: "#472E7C",
     }, { name: "marylou1",
          fingerprint: "578E007E5E4535FBFEF7758D8587B07B4C8C5D06",
     }, { name: "marylou1",
          fingerprint: "578E007E5E4535FBFEF7758D8587B07B4C8C5D06",
-         color: "#2ca02c",
+         color: "#3A548C",
     }, { name: "marylou2",
          fingerprint: "90FD830C357A5109AB3C505287713F1AC811174C",
     }, { name: "marylou2",
          fingerprint: "90FD830C357A5109AB3C505287713F1AC811174C",
-         color: "#98df8a",
+         color: "#365D8D",
     }, { name: "marylou3",
          fingerprint: "91B7A9659CDB5ACF0DEB46DAA82C122C39CC4ADF",
     }, { name: "marylou3",
          fingerprint: "91B7A9659CDB5ACF0DEB46DAA82C122C39CC4ADF",
-         color: "#a8cf9a",
+         color: "#32658E",
     }, { name: "marylou4",
          fingerprint: "4F0C498701A41F4D9CA677EA763FD8CA45348E97",
     }, { name: "marylou4",
          fingerprint: "4F0C498701A41F4D9CA677EA763FD8CA45348E97",
-         color: "#b8dfaa",
+         color: "#2E6D8E",
     }, { name: "AlGrothendieck",
          fingerprint: "8E6EDA78D8E3ABA88D877C3E37D6D4F0938C7B9F",
     }, { name: "AlGrothendieck",
          fingerprint: "8E6EDA78D8E3ABA88D877C3E37D6D4F0938C7B9F",
-         color: "#d62728",
+         color: "#2B758E",
     }, { name: "elenagb",
          fingerprint: "F47B13BFCE4EF48CDEF6C4D7C7A99208EBB972B5",
     }, { name: "elenagb",
          fingerprint: "F47B13BFCE4EF48CDEF6C4D7C7A99208EBB972B5",
-         color: "#ff9896",
+         color: "#2B758E",
     }, { name: "mwittig",
          fingerprint: "B580111855B9C452EB224CA7932B626E28D3C2EA",
     }, { name: "mwittig",
          fingerprint: "B580111855B9C452EB224CA7932B626E28D3C2EA",
-         color: "#d9edf7",
+         color: "#2EB37C",
     }, { name: "arecoque1",
          fingerprint: "CD1FD2C1F330A3293DA6068E6A23866D063D6DCB",
     }, { name: "arecoque1",
          fingerprint: "CD1FD2C1F330A3293DA6068E6A23866D063D6DCB",
-         color: "#57075F",
+         color: "#6ACD5B",
     }, { name: "arecoque2",
          fingerprint: "42E817BE07AB39CA3BD7A442AF08E007FF2E3F5B",
     }, { name: "arecoque2",
          fingerprint: "42E817BE07AB39CA3BD7A442AF08E007FF2E3F5B",
-         color: "#FF1493",
+         color: "#6ACD5B",
     }, { name: "arecoque3",
          fingerprint: "5450CC0E3D08BB001E8229B8990323D11BC63332",
     }, { name: "arecoque3",
          fingerprint: "5450CC0E3D08BB001E8229B8990323D11BC63332",
-         color: "#FF24A3",
+         color: "#93D741",
     }, { name: "arecoque4",
          fingerprint: "8F13B91FA8380842993E7C36EEF88BEC5D695587",
     }, { name: "arecoque4",
          fingerprint: "8F13B91FA8380842993E7C36EEF88BEC5D695587",
-         color: "#FF34B3",
+         color: "#A8DB34",
         }
 ];
         }
 ];