mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Add new map colors
Also fix our map colors, which appear to in fact be RGB for both Java and Bedrock. Fixes #2468
This commit is contained in:
parent
e8ddac64b4
commit
67c93dcc8c
2 changed files with 226 additions and 214 deletions
|
@ -67,7 +67,7 @@ public class JavaMapDataTranslator extends PacketTranslator<ServerMapDataPacket>
|
|||
|
||||
int idx = 0;
|
||||
for (byte colorId : data.getData()) {
|
||||
colors[idx++] = MapColor.fromId(colorId & 0xFF).toABGR();
|
||||
colors[idx++] = MapColor.fromId(colorId & 0xFF).toARGB();
|
||||
}
|
||||
|
||||
mapItemDataPacket.setColors(colors);
|
||||
|
|
|
@ -30,238 +30,250 @@ public enum MapColor {
|
|||
COLOR_1(-1, -1, -1),
|
||||
COLOR_2(-1, -1, -1),
|
||||
COLOR_3(-1, -1, -1),
|
||||
COLOR_4(90, 126, 40),
|
||||
COLOR_5(110, 154, 48),
|
||||
COLOR_6(127, 178, 56),
|
||||
COLOR_7(67, 94, 30),
|
||||
COLOR_8(174, 164, 115),
|
||||
COLOR_9(213, 201, 141),
|
||||
COLOR_10(247, 233, 163),
|
||||
COLOR_11(131, 123, 86),
|
||||
COLOR_4(39, 125, 89),
|
||||
COLOR_5(48, 153, 109),
|
||||
COLOR_6(56, 178, 127),
|
||||
COLOR_7(29, 94, 67),
|
||||
COLOR_8(115, 164, 174),
|
||||
COLOR_9(140, 201, 213),
|
||||
COLOR_10(163, 233, 247),
|
||||
COLOR_11(86, 123, 130),
|
||||
COLOR_12(140, 140, 140),
|
||||
COLOR_13(172, 172, 172),
|
||||
COLOR_13(171, 171, 171),
|
||||
COLOR_14(199, 199, 199),
|
||||
COLOR_15(105, 105, 105),
|
||||
COLOR_16(180, 0, 0),
|
||||
COLOR_17(220, 0, 0),
|
||||
COLOR_18(255, 0, 0),
|
||||
COLOR_19(135, 0, 0),
|
||||
COLOR_20(113, 113, 180),
|
||||
COLOR_21(138, 138, 220),
|
||||
COLOR_22(160, 160, 255),
|
||||
COLOR_23(85, 85, 135),
|
||||
COLOR_24(118, 118, 118),
|
||||
COLOR_16(0, 0, 180),
|
||||
COLOR_17(0, 0, 220),
|
||||
COLOR_18(0, 0, 255),
|
||||
COLOR_19(0, 0, 135),
|
||||
COLOR_20(180, 112, 112),
|
||||
COLOR_21(220, 138, 138),
|
||||
COLOR_22(255, 160, 160),
|
||||
COLOR_23(135, 84, 84),
|
||||
COLOR_24(117, 117, 117),
|
||||
COLOR_25(144, 144, 144),
|
||||
COLOR_26(167, 167, 167),
|
||||
COLOR_27(88, 88, 88),
|
||||
COLOR_28(0, 88, 0),
|
||||
COLOR_29(0, 107, 0),
|
||||
COLOR_28(0, 87, 0),
|
||||
COLOR_29(0, 106, 0),
|
||||
COLOR_30(0, 124, 0),
|
||||
COLOR_31(0, 66, 0),
|
||||
COLOR_31(0, 65, 0),
|
||||
COLOR_32(180, 180, 180),
|
||||
COLOR_33(220, 220, 220),
|
||||
COLOR_34(255, 255, 255),
|
||||
COLOR_35(135, 135, 135),
|
||||
COLOR_36(116, 119, 130),
|
||||
COLOR_37(141, 145, 159),
|
||||
COLOR_38(164, 168, 184),
|
||||
COLOR_39(87, 89, 97),
|
||||
COLOR_40(107, 77, 54),
|
||||
COLOR_41(130, 94, 66),
|
||||
COLOR_42(151, 109, 77),
|
||||
COLOR_43(80, 58, 41),
|
||||
COLOR_36(129, 118, 115),
|
||||
COLOR_37(158, 144, 141),
|
||||
COLOR_38(184, 168, 164),
|
||||
COLOR_39(97, 88, 86),
|
||||
COLOR_40(54, 76, 106),
|
||||
COLOR_41(66, 94, 130),
|
||||
COLOR_42(77, 109, 151),
|
||||
COLOR_43(40, 57, 79),
|
||||
COLOR_44(79, 79, 79),
|
||||
COLOR_45(97, 97, 97),
|
||||
COLOR_45(96, 96, 96),
|
||||
COLOR_46(112, 112, 112),
|
||||
COLOR_47(59, 59, 59),
|
||||
COLOR_48(45, 45, 180),
|
||||
COLOR_49(55, 55, 220),
|
||||
COLOR_50(64, 64, 255),
|
||||
COLOR_51(34, 34, 135),
|
||||
COLOR_52(101, 84, 51),
|
||||
COLOR_53(123, 103, 62),
|
||||
COLOR_54(143, 119, 72),
|
||||
COLOR_55(76, 63, 38),
|
||||
COLOR_56(180, 178, 173),
|
||||
COLOR_57(220, 217, 211),
|
||||
COLOR_58(255, 252, 245),
|
||||
COLOR_59(135, 133, 130),
|
||||
COLOR_60(152, 90, 36),
|
||||
COLOR_61(186, 110, 44),
|
||||
COLOR_62(216, 127, 51),
|
||||
COLOR_63(114, 67, 27),
|
||||
COLOR_64(126, 54, 152),
|
||||
COLOR_65(154, 66, 186),
|
||||
COLOR_66(178, 76, 216),
|
||||
COLOR_67(94, 40, 114),
|
||||
COLOR_68(72, 108, 152),
|
||||
COLOR_69(88, 132, 186),
|
||||
COLOR_70(102, 153, 216),
|
||||
COLOR_71(54, 81, 114),
|
||||
COLOR_72(162, 162, 36),
|
||||
COLOR_73(198, 198, 44),
|
||||
COLOR_74(229, 229, 51),
|
||||
COLOR_75(121, 121, 27),
|
||||
COLOR_76(90, 144, 18),
|
||||
COLOR_77(110, 176, 22),
|
||||
COLOR_78(127, 204, 25),
|
||||
COLOR_79(67, 108, 13),
|
||||
COLOR_80(171, 90, 116),
|
||||
COLOR_81(209, 110, 142),
|
||||
COLOR_82(242, 127, 165),
|
||||
COLOR_83(128, 67, 87),
|
||||
COLOR_84(54, 54, 54),
|
||||
COLOR_85(66, 66, 66),
|
||||
COLOR_48(180, 45, 45),
|
||||
COLOR_49(220, 55, 55),
|
||||
COLOR_50(255, 64, 64),
|
||||
COLOR_51(135, 33, 33),
|
||||
COLOR_52(50, 84, 100),
|
||||
COLOR_53(62, 102, 123),
|
||||
COLOR_54(72, 119, 143),
|
||||
COLOR_55(38, 63, 75),
|
||||
COLOR_56(172, 177, 180),
|
||||
COLOR_57(211, 217, 220),
|
||||
COLOR_58(245, 252, 255),
|
||||
COLOR_59(129, 133, 135),
|
||||
COLOR_60(36, 89, 152),
|
||||
COLOR_61(44, 109, 186),
|
||||
COLOR_62(51, 127, 216),
|
||||
COLOR_63(27, 67, 114),
|
||||
COLOR_64(152, 53, 125),
|
||||
COLOR_65(186, 65, 153),
|
||||
COLOR_66(216, 76, 178),
|
||||
COLOR_67(114, 40, 94),
|
||||
COLOR_68(152, 108, 72),
|
||||
COLOR_69(186, 132, 88),
|
||||
COLOR_70(216, 153, 102),
|
||||
COLOR_71(114, 81, 54),
|
||||
COLOR_72(36, 161, 161),
|
||||
COLOR_73(44, 197, 197),
|
||||
COLOR_74(51, 229, 229),
|
||||
COLOR_75(27, 121, 121),
|
||||
COLOR_76(17, 144, 89),
|
||||
COLOR_77(21, 176, 109),
|
||||
COLOR_78(25, 204, 127),
|
||||
COLOR_79(13, 108, 67),
|
||||
COLOR_80(116, 89, 170),
|
||||
COLOR_81(142, 109, 208),
|
||||
COLOR_82(165, 127, 242),
|
||||
COLOR_83(87, 67, 128),
|
||||
COLOR_84(53, 53, 53),
|
||||
COLOR_85(65, 65, 65),
|
||||
COLOR_86(76, 76, 76),
|
||||
COLOR_87(40, 40, 40),
|
||||
COLOR_88(108, 108, 108),
|
||||
COLOR_89(132, 132, 132),
|
||||
COLOR_90(153, 153, 153),
|
||||
COLOR_91(81, 81, 81),
|
||||
COLOR_92(54, 90, 108),
|
||||
COLOR_93(66, 110, 132),
|
||||
COLOR_94(76, 127, 153),
|
||||
COLOR_95(40, 67, 81),
|
||||
COLOR_96(90, 44, 126),
|
||||
COLOR_97(110, 54, 154),
|
||||
COLOR_98(127, 63, 178),
|
||||
COLOR_99(67, 33, 94),
|
||||
COLOR_100(36, 54, 126),
|
||||
COLOR_101(44, 66, 154),
|
||||
COLOR_102(51, 76, 178),
|
||||
COLOR_103(27, 40, 94),
|
||||
COLOR_104(72, 54, 36),
|
||||
COLOR_105(88, 66, 44),
|
||||
COLOR_106(102, 76, 51),
|
||||
COLOR_107(54, 40, 27),
|
||||
COLOR_108(72, 90, 36),
|
||||
COLOR_109(88, 110, 44),
|
||||
COLOR_110(102, 127, 51),
|
||||
COLOR_111(54, 67, 27),
|
||||
COLOR_112(108, 36, 36),
|
||||
COLOR_113(132, 44, 44),
|
||||
COLOR_114(153, 51, 51),
|
||||
COLOR_115(81, 27, 27),
|
||||
COLOR_116(18, 18, 18),
|
||||
COLOR_117(22, 22, 22),
|
||||
COLOR_92(108, 89, 53),
|
||||
COLOR_93(132, 109, 65),
|
||||
COLOR_94(153, 127, 76),
|
||||
COLOR_95(81, 67, 40),
|
||||
COLOR_96(125, 44, 89),
|
||||
COLOR_97(153, 54, 109),
|
||||
COLOR_98(178, 63, 127),
|
||||
COLOR_99(94, 33, 67),
|
||||
COLOR_100(125, 53, 36),
|
||||
COLOR_101(153, 65, 44),
|
||||
COLOR_102(178, 76, 51),
|
||||
COLOR_103(94, 40, 27),
|
||||
COLOR_104(36, 53, 72),
|
||||
COLOR_105(44, 65, 88),
|
||||
COLOR_106(51, 76, 102),
|
||||
COLOR_107(27, 40, 54),
|
||||
COLOR_108(36, 89, 72),
|
||||
COLOR_109(44, 109, 88),
|
||||
COLOR_110(51, 127, 102),
|
||||
COLOR_111(27, 67, 54),
|
||||
COLOR_112(36, 36, 108),
|
||||
COLOR_113(44, 44, 132),
|
||||
COLOR_114(51, 51, 153),
|
||||
COLOR_115(27, 27, 81),
|
||||
COLOR_116(17, 17, 17),
|
||||
COLOR_117(21, 21, 21),
|
||||
COLOR_118(25, 25, 25),
|
||||
COLOR_119(13, 13, 13),
|
||||
COLOR_120(176, 168, 54),
|
||||
COLOR_121(216, 205, 66),
|
||||
COLOR_122(250, 238, 77),
|
||||
COLOR_123(132, 126, 41),
|
||||
COLOR_124(65, 155, 150),
|
||||
COLOR_125(79, 189, 184),
|
||||
COLOR_126(92, 219, 213),
|
||||
COLOR_127(49, 116, 113),
|
||||
COLOR_128(52, 90, 180),
|
||||
COLOR_129(64, 110, 220),
|
||||
COLOR_130(74, 128, 255),
|
||||
COLOR_131(39, 68, 135),
|
||||
COLOR_132(0, 153, 41),
|
||||
COLOR_133(0, 187, 50),
|
||||
COLOR_134(0, 217, 58),
|
||||
COLOR_135(0, 115, 31),
|
||||
COLOR_136(91, 61, 35),
|
||||
COLOR_137(111, 74, 42),
|
||||
COLOR_138(129, 86, 49),
|
||||
COLOR_139(68, 46, 26),
|
||||
COLOR_140(79, 1, 0),
|
||||
COLOR_141(97, 2, 0),
|
||||
COLOR_142(112, 2, 0),
|
||||
COLOR_143(59, 1, 0),
|
||||
COLOR_144(148, 125, 114),
|
||||
COLOR_145(180, 153, 139),
|
||||
COLOR_146(209, 177, 161),
|
||||
COLOR_147(111, 94, 85),
|
||||
COLOR_148(112, 58, 25),
|
||||
COLOR_149(137, 71, 31),
|
||||
COLOR_150(159, 82, 36),
|
||||
COLOR_151(84, 43, 19),
|
||||
COLOR_152(105, 61, 76),
|
||||
COLOR_153(129, 75, 93),
|
||||
COLOR_154(149, 87, 108),
|
||||
COLOR_155(79, 46, 57),
|
||||
COLOR_156(79, 76, 97),
|
||||
COLOR_157(97, 93, 119),
|
||||
COLOR_158(112, 108, 138),
|
||||
COLOR_159(59, 57, 73),
|
||||
COLOR_160(131, 94, 25),
|
||||
COLOR_161(160, 115, 31),
|
||||
COLOR_162(186, 133, 36),
|
||||
COLOR_163(98, 70, 19),
|
||||
COLOR_164(73, 83, 37),
|
||||
COLOR_165(89, 101, 46),
|
||||
COLOR_166(103, 117, 53),
|
||||
COLOR_167(55, 62, 28),
|
||||
COLOR_168(113, 54, 55),
|
||||
COLOR_169(138, 66, 67),
|
||||
COLOR_170(160, 77, 78),
|
||||
COLOR_171(85, 41, 41),
|
||||
COLOR_172(40, 29, 25),
|
||||
COLOR_173(49, 35, 30),
|
||||
COLOR_174(57, 41, 35),
|
||||
COLOR_175(30, 22, 19),
|
||||
COLOR_176(95, 76, 69),
|
||||
COLOR_177(116, 92, 85),
|
||||
COLOR_178(135, 107, 98),
|
||||
COLOR_179(71, 57, 52),
|
||||
COLOR_180(61, 65, 65),
|
||||
COLOR_181(75, 79, 79),
|
||||
COLOR_182(87, 92, 92),
|
||||
COLOR_183(46, 49, 49),
|
||||
COLOR_184(86, 52, 62),
|
||||
COLOR_185(105, 63, 76),
|
||||
COLOR_186(122, 73, 88),
|
||||
COLOR_187(65, 39, 47),
|
||||
COLOR_188(54, 44, 65),
|
||||
COLOR_189(66, 53, 79),
|
||||
COLOR_190(76, 62, 92),
|
||||
COLOR_191(40, 33, 49),
|
||||
COLOR_192(54, 35, 25),
|
||||
COLOR_193(66, 43, 30),
|
||||
COLOR_194(76, 50, 35),
|
||||
COLOR_195(40, 26, 19),
|
||||
COLOR_196(54, 58, 30),
|
||||
COLOR_197(66, 71, 36),
|
||||
COLOR_198(76, 82, 42),
|
||||
COLOR_199(40, 43, 22),
|
||||
COLOR_200(100, 42, 32),
|
||||
COLOR_201(123, 52, 40),
|
||||
COLOR_202(142, 60, 46),
|
||||
COLOR_203(75, 32, 24),
|
||||
COLOR_204(26, 16, 11),
|
||||
COLOR_205(32, 19, 14),
|
||||
COLOR_206(37, 22, 16),
|
||||
COLOR_207(20, 12, 8),
|
||||
COLOR_208(133, 34, 35),
|
||||
COLOR_209(163, 41, 42),
|
||||
COLOR_210(189, 48, 49),
|
||||
COLOR_211(100, 25, 26),
|
||||
COLOR_212(104, 44, 68),
|
||||
COLOR_213(128, 54, 84),
|
||||
COLOR_214(148, 63, 97),
|
||||
COLOR_215(78, 33, 51),
|
||||
COLOR_216(65, 18, 20),
|
||||
COLOR_217(79, 22, 25),
|
||||
COLOR_218(92, 25, 29),
|
||||
COLOR_219(49, 13, 15),
|
||||
COLOR_220(16, 89, 95),
|
||||
COLOR_221(19, 109, 116),
|
||||
COLOR_222(22, 126, 134),
|
||||
COLOR_223(12, 67, 71),
|
||||
COLOR_224(41, 100, 99),
|
||||
COLOR_225(50, 123, 121),
|
||||
COLOR_226(58, 142, 140),
|
||||
COLOR_227(31, 75, 74),
|
||||
COLOR_228(61, 31, 44),
|
||||
COLOR_229(74, 38, 53),
|
||||
COLOR_230(86, 44, 62),
|
||||
COLOR_231(46, 23, 33),
|
||||
COLOR_232(14, 127, 94),
|
||||
COLOR_233(17, 155, 115),
|
||||
COLOR_234(20, 180, 133),
|
||||
COLOR_235(11, 95, 70);
|
||||
COLOR_120(54, 168, 176),
|
||||
COLOR_121(66, 205, 215),
|
||||
COLOR_122(77, 238, 250),
|
||||
COLOR_123(40, 126, 132),
|
||||
COLOR_124(150, 154, 64),
|
||||
COLOR_125(183, 188, 79),
|
||||
COLOR_126(213, 219, 92),
|
||||
COLOR_127(112, 115, 48),
|
||||
COLOR_128(180, 90, 52),
|
||||
COLOR_129(220, 110, 63),
|
||||
COLOR_130(255, 128, 74),
|
||||
COLOR_131(135, 67, 39),
|
||||
COLOR_132(40, 153, 0),
|
||||
COLOR_133(50, 187, 0),
|
||||
COLOR_134(58, 217, 0),
|
||||
COLOR_135(30, 114, 0),
|
||||
COLOR_136(34, 60, 91),
|
||||
COLOR_137(42, 74, 111),
|
||||
COLOR_138(49, 86, 129),
|
||||
COLOR_139(25, 45, 68),
|
||||
COLOR_140(0, 1, 79),
|
||||
COLOR_141(0, 1, 96),
|
||||
COLOR_142(0, 2, 112),
|
||||
COLOR_143(0, 1, 59),
|
||||
COLOR_144(113, 124, 147),
|
||||
COLOR_145(138, 152, 180),
|
||||
COLOR_146(161, 177, 209),
|
||||
COLOR_147(85, 93, 110),
|
||||
COLOR_148(25, 57, 112),
|
||||
COLOR_149(31, 70, 137),
|
||||
COLOR_150(36, 82, 159),
|
||||
COLOR_151(19, 43, 84),
|
||||
COLOR_152(76, 61, 105),
|
||||
COLOR_153(93, 75, 128),
|
||||
COLOR_154(108, 87, 149),
|
||||
COLOR_155(57, 46, 78),
|
||||
COLOR_156(97, 76, 79),
|
||||
COLOR_157(119, 93, 96),
|
||||
COLOR_158(138, 108, 112),
|
||||
COLOR_159(73, 57, 59),
|
||||
COLOR_160(25, 93, 131),
|
||||
COLOR_161(31, 114, 160),
|
||||
COLOR_162(36, 133, 186),
|
||||
COLOR_163(19, 70, 98),
|
||||
COLOR_164(37, 82, 72),
|
||||
COLOR_165(45, 100, 88),
|
||||
COLOR_166(53, 117, 103),
|
||||
COLOR_167(28, 61, 54),
|
||||
COLOR_168(55, 54, 112),
|
||||
COLOR_169(67, 66, 138),
|
||||
COLOR_170(78, 77, 160),
|
||||
COLOR_171(41, 40, 84),
|
||||
COLOR_172(24, 28, 40),
|
||||
COLOR_173(30, 35, 49),
|
||||
COLOR_174(35, 41, 57),
|
||||
COLOR_175(18, 21, 30),
|
||||
COLOR_176(69, 75, 95),
|
||||
COLOR_177(84, 92, 116),
|
||||
COLOR_178(98, 107, 135),
|
||||
COLOR_179(51, 56, 71),
|
||||
COLOR_180(64, 64, 61),
|
||||
COLOR_181(79, 79, 75),
|
||||
COLOR_182(92, 92, 87),
|
||||
COLOR_183(48, 48, 46),
|
||||
COLOR_184(62, 51, 86),
|
||||
COLOR_185(75, 62, 105),
|
||||
COLOR_186(88, 73, 122),
|
||||
COLOR_187(46, 38, 64),
|
||||
COLOR_188(64, 43, 53),
|
||||
COLOR_189(79, 53, 65),
|
||||
COLOR_190(92, 62, 76),
|
||||
COLOR_191(48, 32, 40),
|
||||
COLOR_192(24, 35, 53),
|
||||
COLOR_193(30, 43, 65),
|
||||
COLOR_194(35, 50, 76),
|
||||
COLOR_195(18, 26, 40),
|
||||
COLOR_196(29, 57, 53),
|
||||
COLOR_197(36, 70, 65),
|
||||
COLOR_198(42, 82, 76),
|
||||
COLOR_199(22, 43, 40),
|
||||
COLOR_200(32, 42, 100),
|
||||
COLOR_201(39, 51, 122),
|
||||
COLOR_202(46, 60, 142),
|
||||
COLOR_203(24, 31, 75),
|
||||
COLOR_204(11, 15, 26),
|
||||
COLOR_205(13, 18, 31),
|
||||
COLOR_206(16, 22, 37),
|
||||
COLOR_207(8, 11, 19),
|
||||
COLOR_208(34, 33, 133),
|
||||
COLOR_209(42, 41, 163),
|
||||
COLOR_210(49, 48, 189),
|
||||
COLOR_211(25, 25, 100),
|
||||
COLOR_212(68, 44, 104),
|
||||
COLOR_213(83, 54, 127),
|
||||
COLOR_214(97, 63, 148),
|
||||
COLOR_215(51, 33, 78),
|
||||
COLOR_216(20, 17, 64),
|
||||
COLOR_217(25, 21, 79),
|
||||
COLOR_218(29, 25, 92),
|
||||
COLOR_219(15, 13, 48),
|
||||
COLOR_220(94, 88, 15),
|
||||
COLOR_221(115, 108, 18),
|
||||
COLOR_222(134, 126, 22),
|
||||
COLOR_223(70, 66, 11),
|
||||
COLOR_224(98, 100, 40),
|
||||
COLOR_225(120, 122, 50),
|
||||
COLOR_226(140, 142, 58),
|
||||
COLOR_227(74, 75, 30),
|
||||
COLOR_228(43, 31, 60),
|
||||
COLOR_229(53, 37, 74),
|
||||
COLOR_230(62, 44, 86),
|
||||
COLOR_231(32, 23, 45),
|
||||
COLOR_232(93, 127, 14),
|
||||
COLOR_233(114, 155, 17),
|
||||
COLOR_234(133, 180, 20),
|
||||
COLOR_235(70, 95, 10),
|
||||
COLOR_236(70, 70, 70),
|
||||
COLOR_237(86, 86, 86),
|
||||
COLOR_238(100, 100, 100),
|
||||
COLOR_239(52, 52, 52),
|
||||
COLOR_240(103, 123, 152),
|
||||
COLOR_241(126, 150, 186),
|
||||
COLOR_242(147, 175, 216),
|
||||
COLOR_243(77, 92, 114),
|
||||
COLOR_244(105, 117, 89),
|
||||
COLOR_245(129, 144, 109),
|
||||
COLOR_246(150, 167, 127),
|
||||
COLOR_247(79, 88, 67);
|
||||
|
||||
private static final MapColor[] VALUES = values();
|
||||
|
||||
|
@ -279,14 +291,14 @@ public enum MapColor {
|
|||
return id >= 0 && id < VALUES.length ? VALUES[id] : COLOR_0;
|
||||
}
|
||||
|
||||
public int toABGR() {
|
||||
public int toARGB() {
|
||||
int alpha = 255;
|
||||
if (red == -1 && green == -1 && blue == -1)
|
||||
alpha = 0; // transparent
|
||||
|
||||
return ((alpha & 0xFF) << 24) |
|
||||
((blue & 0xFF) << 16) |
|
||||
((red & 0xFF) << 16) |
|
||||
((green & 0xFF) << 8) |
|
||||
(red & 0xFF);
|
||||
(blue & 0xFF);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue