# Pastebin LSvgTEou const B_LIGHTEN_MAX_TINT = 0.0; // 216 --> 255.0 (255) const B_LIGHTEN_2_TINT = 0.385; // 216 --> 240.0 (240) const B_LIGHTEN_1_TINT = 0.590; // 216 --> 232.0 (232) const B_NO_TINT = 1.0; // 216 --> 216.0 (216) const B_DARKEN_1_TINT = 1.147; // 216 --> 184.2 (184) const B_DARKEN_2_TINT = 1.295; // 216 --> 152.3 (152) const B_DARKEN_3_TINT = 1.407; // 216 --> 128.1 (128) const B_DARKEN_4_TINT = 1.555; // 216 --> 96.1 (96) const B_DARKEN_MAX_TINT = 2.0; // 216 --> 0.0 (0) function tint_color(color, tint) { var result = []; if (tint < 1.0) { result[0] = ((parseInt(255.0 - (255.0 - color[0]) * tint))); result[1] = ((parseInt(255.0 - (255.0 - color[1]) * tint))); result[2] = ((parseInt(255.0 - (255.0 - color[2]) * tint))); result[3] = color[3]; } else { result[0] = ((parseInt(color[0] * (2 - tint)))); result[1] = ((parseInt(color[1] * (2 - tint)))); result[2] = ((parseInt(color[2] * (2 - tint)))); result[3] = color[3]; } return result; } const Default_PanelBackground = [216, 216, 216, 255]; const Default_PanelBackground_Dark = [43, 43, 43, 255];