Skip to content

Commit

Permalink
Update palette.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leomcelroy committed Aug 26, 2022
1 parent 177f3c4 commit e4ee2eb
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions palette.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
// export const palette = [
// ["0", [0, 0, 0, 255]],
// ["1", [157, 157, 157, 255]],
// ["L", [91, 101, 112, 255]],
// ["2", [255, 255, 255, 255]],
// ["3", [190, 38, 51, 255]],
// ["4", [163, 206, 39, 255]],
// ["5", [0, 87, 132, 255]],
// ["6", [247, 226, 107, 255]],
// ["7", [49, 162, 242, 255]],
// ["8", [224, 111, 139, 255]],
// [".", [0, 0, 0, 0]]
// ].map(([k, v]) => [k, v.map(Math.round)]);

export const palette = [
["0", [0, 0, 0, 255]],
["1", [157, 157, 157, 255]],
["L", [91, 101, 112, 255]],
["1", [255/2, 255/2, 255/2, 255]],
["L", [255/3, 255/3, 255/3, 255]],
["2", [255, 255, 255, 255]],
["3", [190, 38, 51, 255]],
["4", [163, 206, 39, 255]],
["5", [0, 87, 132, 255]],
["6", [247, 226, 107, 255]],
["7", [49, 162, 242, 255]],
["8", [224, 111, 139, 255]],
["3", [255, 0, 0, 255]],
["4", [0, 255, 0, 255]],
["5", [0, 0, 255, 255]],
["6", [255, 255, 0, 255]],
["7", [0, 255, 255, 255]],
["8", [255, 0, 255, 255]],
[".", [0, 0, 0, 0]]
].map(([k, v]) => [k, v.map(Math.round)]);
].map(([k, v]) => [k, v.map(Math.round)]);

0 comments on commit e4ee2eb

Please sign in to comment.