summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2020-04-19 11:02:03 -0500
committerBe <be@mixxx.org>2020-04-19 11:09:25 -0500
commit24b0e51b7790cd1259e999fb4cfae861901609c5 (patch)
tree98c694ec9dc0f9ec7ad5a935c82654d6c6b992bb /res
parentf1e13f93ad35dc1de34a6e8741f369cbb95bc71e (diff)
ColorMapperJSProxy: remove hack for using strings as keys
Keys must be JS numbers.
Diffstat (limited to 'res')
-rw-r--r--res/controllers/Roland_DJ-505-scripts.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/res/controllers/Roland_DJ-505-scripts.js b/res/controllers/Roland_DJ-505-scripts.js
index 89264bf625..926491d922 100644
--- a/res/controllers/Roland_DJ-505-scripts.js
+++ b/res/controllers/Roland_DJ-505-scripts.js
@@ -1017,22 +1017,22 @@ DJ505.PadColor = {
};
DJ505.PadColorMap = new ColorMapper({
- "#CC0000": DJ505.PadColor.RED,
- "#CC4400": DJ505.PadColor.CORAL,
- "#CC8800": DJ505.PadColor.ORANGE,
- "#CCCC00": DJ505.PadColor.YELLOW,
- "#88CC00": DJ505.PadColor.GREEN,
- "#00CC00": DJ505.PadColor.APPLEGREEN,
- "#00CC88": DJ505.PadColor.AQUAMARINE,
- "#00CCCC": DJ505.PadColor.TURQUOISE,
- "#0088CC": DJ505.PadColor.CELESTE,
- "#0000CC": DJ505.PadColor.BLUE,
- "#4400CC": DJ505.PadColor.AZURE,
- "#8800CC": DJ505.PadColor.PURPLE,
- "#CC00CC": DJ505.PadColor.MAGENTA,
- "#CC0044": DJ505.PadColor.RED,
- "#FFCCCC": DJ505.PadColor.APRICOT,
- "#FFFFFF": DJ505.PadColor.WHITE,
+ 0xCC0000: DJ505.PadColor.RED,
+ 0xCC4400: DJ505.PadColor.CORAL,
+ 0xCC8800: DJ505.PadColor.ORANGE,
+ 0xCCCC00: DJ505.PadColor.YELLOW,
+ 0x88CC00: DJ505.PadColor.GREEN,
+ 0x00CC00: DJ505.PadColor.APPLEGREEN,
+ 0x00CC88: DJ505.PadColor.AQUAMARINE,
+ 0x00CCCC: DJ505.PadColor.TURQUOISE,
+ 0x0088CC: DJ505.PadColor.CELESTE,
+ 0x0000CC: DJ505.PadColor.BLUE,
+ 0x4400CC: DJ505.PadColor.AZURE,
+ 0x8800CC: DJ505.PadColor.PURPLE,
+ 0xCC00CC: DJ505.PadColor.MAGENTA,
+ 0xCC0044: DJ505.PadColor.RED,
+ 0xFFCCCC: DJ505.PadColor.APRICOT,
+ 0xFFFFFF: DJ505.PadColor.WHITE,
});
DJ505.PadSection = function(deck, offset) {