Skip to content

Commit

Permalink
moved rainbow color scheme array to one line and added '// deno-fmt-i…
Browse files Browse the repository at this point in the history
…gnore'
  • Loading branch information
mjrlowe committed Jun 21, 2020
1 parent a71f055 commit 2c99a2d
Showing 1 changed file with 2 additions and 52 deletions.
54 changes: 2 additions & 52 deletions display.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,58 +278,8 @@ export default function display({
} else if (colorScheme === "rainbow") {
//hardcoded array of colors to interpolate between because that's easier than doing it properly
interpolatedColor = interpolate(
[
"#6d3fa9",
"#7d3eaf",
"#8d3db2",
"#9e3cb3",
"#ae3cb1",
"#bf3cae",
"#ce3da9",
"#dc3fa1",
"#e94298",
"#f5468e",
"#fe4b82",
"#ff5176",
"#ff5969",
"#ff625d",
"#ff6c51",
"#ff7746",
"#ff833d",
"#fe8f35",
"#f69c30",
"#ecaa2e",
"#e2b72e",
"#d6c431",
"#cbd037",
"#c1db40",
"#b7e64c",
"#afef5a",
"#9bf257",
"#88f457",
"#75f659",
"#62f65f",
"#52f566",
"#43f370",
"#36f07c",
"#2bec88",
"#23e695",
"#1ddea3",
"#1ad6b0",
"#19ccbc",
"#1ac1c7",
"#1eb6d0",
"#23aad8",
"#2a9edd",
"#3192e0",
"#3a85e1",
"#4379df",
"#4c6edb",
"#5463d5",
"#5c59cc",
"#634fc2",
"#6947b6",
],
// deno-fmt-ignore
[ "#6d3fa9", "#7d3eaf", "#8d3db2", "#9e3cb3", "#ae3cb1", "#bf3cae", "#ce3da9", "#dc3fa1", "#e94298", "#f5468e", "#fe4b82", "#ff5176", "#ff5969", "#ff625d", "#ff6c51", "#ff7746", "#ff833d", "#fe8f35", "#f69c30", "#ecaa2e", "#e2b72e", "#d6c431", "#cbd037", "#c1db40", "#b7e64c", "#afef5a", "#9bf257", "#88f457", "#75f659", "#62f65f", "#52f566", "#43f370", "#36f07c", "#2bec88", "#23e695", "#1ddea3", "#1ad6b0", "#19ccbc", "#1ac1c7", "#1eb6d0", "#23aad8", "#2a9edd", "#3192e0", "#3a85e1", "#4379df", "#4c6edb", "#5463d5", "#5c59cc", "#634fc2", "#6947b6",],
k,
);

Expand Down

0 comments on commit 2c99a2d

Please sign in to comment.