-- all hues not in this list are just shades from the primary hue by a grey-scale-gradient(basehue) (max(all errors within hue palette) <= 25%) -- see also GetHueColor(iHue) = r,g,b,a gBaseHues -- gBaseHues[hueid] = basehueid ... these ids are zerobased from hues.mul file , when you get a hueid from the game, 0 means unhued, and otherwise hueid = hue_from_game-1 gBaseHues = { [0]=2049,[1]=2030,[2]=935,[3]=935,[4]=935,[5]=935,[6]=2030,[7]=935,[8]=935,[9]=935,[10]=935,[11]=2030,[12]=935,[13]=935,[14]=935, [15]=935,[16]=2030,[17]=935,[18]=935,[19]=935,[20]=935,[21]=2030,[22]=935,[23]=935,[24]=935,[25]=935,[26]=2030,[27]=935,[28]=935,[29]=935,[30]=935, [31]=2030,[32]=935,[33]=935,[34]=935,[35]=935,[36]=2030,[37]=935,[38]=935,[39]=935,[40]=935,[41]=2030,[42]=935,[43]=935,[44]=935,[45]=935,[46]=2030, [47]=935,[48]=935,[49]=935,[50]=935,[51]=2030,[52]=935,[53]=935,[54]=935,[55]=935,[56]=2030,[57]=935,[58]=935,[59]=935,[60]=935,[61]=2030,[62]=935, [63]=935,[64]=935,[65]=935,[66]=2030,[67]=935,[68]=935,[69]=935,[70]=935,[71]=2030,[72]=935,[73]=935,[74]=935,[75]=935,[76]=2030,[77]=935,[78]=935, [79]=935,[80]=935,[81]=2030,[82]=935,[83]=935,[84]=935,[85]=935,[86]=2030,[87]=935,[88]=935,[89]=935,[90]=935,[91]=2030,[92]=935,[93]=935,[94]=935, [95]=935,[96]=2030,[97]=935,[98]=935,[99]=935,[100]=935,[101]=2030,[102]=935,[103]=935,[104]=935,[105]=935,[106]=2030,[107]=935,[108]=935,[109]=935,[110]=935, [111]=2030,[112]=935,[113]=935,[114]=935,[115]=935,[116]=2030,[117]=935,[118]=935,[119]=935,[120]=935,[121]=2030,[122]=935,[123]=935,[124]=935,[125]=935,[126]=2030, [127]=935,[128]=935,[129]=935,[130]=935,[131]=2030,[132]=935,[133]=935,[134]=935,[135]=935,[136]=2030,[137]=935,[138]=935,[139]=935,[140]=935,[141]=2030,[142]=935, [143]=935,[144]=935,[145]=935,[146]=2030,[147]=935,[148]=935,[149]=935,[150]=935,[151]=2030,[152]=935,[153]=935,[154]=935,[155]=935,[156]=2030,[157]=935,[158]=935, [159]=935,[160]=935,[161]=2030,[162]=935,[163]=935,[164]=935,[165]=935,[166]=2030,[167]=935,[168]=935,[169]=935,[170]=935,[171]=2030,[172]=935,[173]=935,[174]=935, [175]=935,[176]=2030,[177]=935,[178]=935,[179]=935,[180]=935,[181]=2030,[182]=935,[183]=935,[184]=935,[185]=935,[186]=2030,[187]=935,[188]=935,[189]=935,[190]=935, [191]=2030,[192]=935,[193]=935,[194]=935,[195]=935,[196]=2030,[197]=935,[198]=935,[199]=935,[200]=935,[201]=967,[202]=935,[203]=935,[204]=935,[205]=935,[206]=967, [207]=935,[208]=935,[209]=935,[210]=935,[211]=967,[212]=935,[213]=935,[214]=935,[215]=935,[216]=967,[217]=935,[218]=935,[219]=935,[220]=935,[221]=967,[222]=935, [223]=935,[224]=935,[225]=935,[226]=967,[227]=935,[228]=935,[229]=935,[230]=935,[231]=967,[232]=935,[233]=935,[234]=935,[235]=935,[236]=967,[237]=935,[238]=935, [239]=935,[240]=935,[241]=967,[242]=935,[243]=935,[244]=935,[245]=935,[246]=967,[247]=935,[248]=935,[249]=935,[250]=935,[251]=967,[252]=935,[253]=935,[254]=935, [255]=935,[256]=967,[257]=935,[258]=935,[259]=935,[260]=935,[261]=967,[262]=935,[263]=935,[264]=935,[265]=935,[266]=967,[267]=935,[268]=935,[269]=935,[270]=935, [271]=967,[272]=935,[273]=935,[274]=935,[275]=935,[276]=967,[277]=935,[278]=935,[279]=935,[280]=935,[281]=967,[282]=935,[283]=935,[284]=935,[285]=935,[286]=967, [287]=935,[288]=935,[289]=935,[290]=935,[291]=967,[292]=935,[293]=935,[294]=935,[295]=935,[296]=967,[297]=935,[298]=935,[299]=935,[300]=935,[301]=998,[302]=999, [303]=999,[304]=935,[305]=935,[306]=998,[307]=999,[308]=999,[309]=935,[310]=935,[311]=998,[312]=999,[313]=999,[314]=935,[315]=935,[316]=998,[317]=999,[318]=999, [319]=935,[320]=935,[321]=998,[322]=999,[323]=999,[324]=935,[325]=935,[326]=998,[327]=999,[328]=999,[329]=935,[330]=935,[331]=998,[332]=999,[333]=999,[334]=935, [335]=935,[336]=998,[337]=999,[338]=999,[339]=935,[340]=935,[341]=998,[342]=999,[343]=999,[344]=935,[345]=935,[346]=998,[347]=999,[348]=999,[349]=935,[350]=935, [351]=998,[352]=999,[353]=999,[354]=935,[355]=935,[356]=998,[357]=999,[358]=999,[359]=935,[360]=935,[361]=998,[362]=999,[363]=999,[364]=935,[365]=935,[366]=998, [367]=999,[368]=999,[369]=935,[370]=935,[371]=998,[372]=999,[373]=999,[374]=935,[375]=935,[376]=998,[377]=999,[378]=999,[379]=935,[380]=935,[381]=998,[382]=999, [383]=999,[384]=935,[385]=935,[386]=998,[387]=999,[388]=999,[389]=935,[390]=935,[391]=998,[392]=999,[393]=999,[394]=935,[395]=935,[396]=998,[397]=999,[398]=999, [399]=935,[400]=935,[401]=936,[402]=999,[403]=999,[404]=935,[405]=935,[406]=936,[407]=999,[408]=999,[409]=935,[410]=935,[411]=936,[412]=999,[413]=999,[414]=935, [415]=935,[416]=936,[417]=999,[418]=999,[419]=935,[420]=935,[421]=936,[422]=999,[423]=999,[424]=935,[425]=935,[426]=936,[427]=999,[428]=999,[429]=935,[430]=935, [431]=936,[432]=999,[433]=999,[434]=935,[435]=935,[436]=936,[437]=999,[438]=999,[439]=935,[440]=935,[441]=936,[442]=999,[443]=999,[444]=935,[445]=935,[446]=936, [447]=999,[448]=999,[449]=935,[450]=935,[451]=936,[452]=999,[453]=999,[454]=935,[455]=935,[456]=936,[457]=999,[458]=999,[459]=935,[460]=935,[461]=936,[462]=999, [463]=999,[464]=935,[465]=935,[466]=936,[467]=999,[468]=999,[469]=935,[470]=935,[471]=936,[472]=999,[473]=999,[474]=935,[475]=935,[476]=936,[477]=999,[478]=999, [479]=935,[480]=935,[481]=936,[482]=999,[483]=999,[484]=935,[485]=935,[486]=936,[487]=999,[488]=999,[489]=935,[490]=935,[491]=936,[492]=999,[493]=999,[494]=935, [495]=935,[496]=936,[497]=999,[498]=999,[499]=935,[500]=935,[501]=967,[502]=967,[503]=999,[504]=935,[505]=935,[506]=967,[507]=967,[508]=999,[509]=935,[510]=935, [511]=967,[512]=967,[513]=999,[514]=935,[515]=935,[516]=967,[517]=967,[518]=999,[519]=999,[520]=935,[521]=967,[522]=967,[523]=999,[524]=999,[525]=935,[526]=967, [527]=967,[528]=999,[529]=935,[530]=935,[531]=967,[532]=967,[533]=999,[534]=935,[535]=935,[536]=967,[537]=967,[538]=999,[539]=935,[540]=935,[541]=967,[542]=967, [543]=999,[544]=935,[545]=935,[546]=967,[547]=967,[548]=999,[549]=935,[550]=935,[551]=967,[552]=967,[553]=999,[554]=935,[555]=935,[556]=967,[557]=967,[558]=999, [559]=935,[560]=935,[561]=967,[562]=967,[563]=999,[564]=935,[565]=935,[566]=967,[567]=967,[568]=999,[569]=935,[570]=935,[571]=967,[572]=967,[573]=999,[574]=935, [575]=935,[576]=967,[577]=967,[578]=999,[579]=935,[580]=935,[581]=967,[582]=967,[583]=999,[584]=999,[585]=935,[586]=967,[587]=967,[588]=999,[589]=999,[590]=935, [591]=967,[592]=967,[593]=999,[594]=935,[595]=935,[596]=967,[597]=967,[598]=999,[599]=935,[600]=935,[601]=2036,[602]=998,[603]=2030,[604]=999,[605]=935,[606]=2036, [607]=998,[608]=2030,[609]=999,[610]=935,[611]=2036,[612]=998,[613]=2030,[614]=999,[615]=935,[616]=2036,[617]=998,[618]=1152,[619]=999,[620]=935,[621]=2036,[622]=998, [623]=2030,[624]=999,[625]=935,[626]=2036,[627]=998,[628]=2030,[629]=999,[630]=935,[631]=2036,[632]=998,[633]=2030,[634]=999,[635]=935,[636]=2036,[637]=998,[638]=2030, [639]=999,[640]=935,[641]=2036,[642]=998,[643]=2030,[644]=999,[645]=935,[646]=2036,[647]=998,[648]=2030,[649]=999,[650]=935,[651]=2036,[652]=998,[653]=2030,[654]=999, [655]=935,[656]=2036,[657]=998,[658]=2030,[659]=999,[660]=935,[661]=2036,[662]=998,[663]=2030,[664]=999,[665]=935,[666]=2036,[667]=998,[668]=2030,[669]=999,[670]=935, [671]=2036,[672]=998,[673]=2030,[674]=999,[675]=935,[676]=2036,[677]=998,[678]=2030,[679]=999,[680]=935,[681]=2036,[682]=998,[683]=2030,[684]=999,[685]=935,[686]=2036, [687]=998,[688]=1152,[689]=999,[690]=935,[691]=2036,[692]=998,[693]=2030,[694]=999,[695]=935,[696]=2036,[697]=998,[698]=2030,[699]=999,[700]=935,[701]=2024,[702]=936, [703]=967,[704]=999,[705]=935,[706]=2024,[707]=936,[708]=967,[709]=999,[710]=935,[711]=2024,[712]=936,[713]=967,[714]=999,[715]=935,[716]=2024,[717]=936,[718]=967, [719]=999,[720]=935,[721]=2024,[722]=936,[723]=967,[724]=999,[725]=935,[726]=2024,[727]=936,[728]=967,[729]=999,[730]=935,[731]=2024,[732]=936,[733]=967,[734]=999, [735]=935,[736]=2024,[737]=936,[738]=967,[739]=999,[740]=935,[741]=2024,[742]=936,[743]=967,[744]=999,[745]=935,[746]=2024,[747]=936,[748]=967,[749]=999,[750]=935, [751]=2024,[752]=936,[753]=967,[754]=999,[755]=935,[756]=2024,[757]=936,[758]=967,[759]=999,[760]=935,[761]=2024,[762]=936,[763]=967,[764]=999,[765]=935,[766]=2024, [767]=936,[768]=967,[769]=999,[770]=935,[771]=2024,[772]=936,[773]=967,[774]=999,[775]=935,[776]=2024,[777]=936,[778]=967,[779]=999,[780]=935,[781]=2024,[782]=936, [783]=967,[784]=999,[785]=935,[786]=2024,[787]=936,[788]=967,[789]=999,[790]=935,[791]=2024,[792]=936,[793]=967,[794]=999,[795]=935,[796]=2024,[797]=936,[798]=967, [799]=999,[800]=935,[801]=2034,[802]=967,[803]=998,[804]=1152,[805]=935,[806]=2034,[807]=967,[808]=998,[809]=1152,[810]=935,[811]=2034,[812]=967,[813]=998,[814]=1152, [815]=935,[816]=2034,[817]=967,[818]=998,[819]=1152,[820]=935,[821]=2034,[822]=967,[823]=998,[824]=1152,[825]=935,[826]=2034,[827]=967,[828]=998,[829]=1152,[830]=935, [831]=2034,[832]=967,[833]=998,[834]=1152,[835]=935,[836]=2034,[837]=967,[838]=998,[839]=1152,[840]=935,[841]=2034,[842]=967,[843]=998,[844]=1152,[845]=935,[846]=2034, [847]=967,[848]=998,[849]=1152,[850]=935,[851]=2034,[852]=967,[853]=998,[854]=1152,[855]=935,[856]=2034,[857]=967,[858]=998,[859]=1152,[860]=935,[861]=2034,[862]=967, [863]=998,[864]=1152,[865]=935,[866]=2034,[867]=967,[868]=998,[869]=1152,[870]=935,[871]=2034,[872]=967,[873]=998,[874]=1152,[875]=935,[876]=2034,[877]=967,[878]=998, [879]=1152,[880]=935,[881]=2034,[882]=967,[883]=998,[884]=1152,[885]=935,[886]=2034,[887]=967,[888]=998,[889]=1152,[890]=935,[891]=2034,[892]=967,[893]=998,[894]=1152, [895]=935,[896]=2034,[897]=967,[898]=998,[899]=1152,[900]=935,[901]=936,[902]=2036,[903]=936,[904]=967,[905]=935,[906]=936,[907]=2036,[908]=936,[909]=967,[910]=935, [911]=936,[912]=2036,[913]=936,[914]=967,[915]=935,[916]=936,[917]=2036,[918]=936,[919]=967,[920]=935,[921]=936,[922]=2036,[923]=936,[924]=967,[925]=935,[926]=936, [927]=2036,[928]=936,[929]=967,[930]=935,[931]=936,[932]=2036,[933]=936,[934]=967,[935]=935,[936]=936,[937]=2036,[938]=936,[939]=967,[940]=935,[941]=936,[942]=2036, [943]=936,[944]=967,[945]=935,[946]=936,[947]=2036,[948]=936,[949]=967,[950]=935,[951]=936,[952]=2036,[953]=936,[954]=967,[955]=935,[956]=936,[957]=2036,[958]=936, [959]=967,[960]=935,[961]=936,[962]=2036,[963]=936,[964]=967,[965]=935,[966]=936,[967]=2036,[968]=936,[969]=967,[970]=935,[971]=936,[972]=2036,[973]=936,[974]=967, [975]=935,[976]=936,[977]=2036,[978]=936,[979]=967,[980]=935,[981]=936,[982]=2036,[983]=936,[984]=967,[985]=935,[986]=936,[987]=2036,[988]=936,[989]=967,[990]=935, [991]=936,[992]=2036,[993]=936,[994]=967,[995]=935,[996]=936,[997]=2036,[998]=936,[999]=967,[1000]=935,[1001]=935,[1002]=935,[1003]=935,[1004]=935,[1005]=967,[1006]=998, [1007]=967,[1008]=935,[1009]=935,[1010]=935,[1011]=935,[1012]=967,[1013]=998,[1014]=967,[1015]=935,[1016]=935,[1017]=935,[1018]=935,[1019]=967,[1020]=935,[1021]=967,[1022]=935, [1023]=935,[1024]=935,[1025]=967,[1026]=967,[1027]=967,[1028]=2036,[1029]=935,[1030]=935,[1031]=935,[1032]=967,[1033]=967,[1034]=967,[1035]=2036,[1036]=935,[1037]=935,[1038]=935, [1039]=935,[1040]=967,[1041]=967,[1042]=967,[1043]=2036,[1044]=935,[1045]=935,[1046]=935,[1047]=967,[1048]=998,[1049]=967,[1050]=2024,[1051]=935,[1052]=935,[1053]=935,[1054]=935, [1055]=967,[1056]=935,[1057]=2036,[1071]=935,[1101]=935,[1102]=967,[1103]=998,[1104]=935,[1105]=967,[1106]=2036,[1107]=2034,[1108]=967,[1109]=935,[1110]=935,[1111]=935,[1112]=967, [1113]=967,[1114]=935,[1115]=967,[1116]=2036,[1117]=935,[1118]=935,[1119]=935,[1120]=935,[1121]=967,[1122]=967,[1123]=998,[1124]=967,[1125]=935,[1126]=935,[1127]=935,[1128]=967, [1129]=998,[1130]=967,[1131]=2036,[1132]=998,[1133]=935,[1134]=935,[1135]=935,[1136]=967,[1137]=998,[1138]=967,[1139]=967,[1140]=2024,[1141]=998,[1142]=935,[1143]=967,[1144]=967, [1145]=2024,[1146]=2034,[1147]=998,[1148]=936,[1150]=935,[1152]=1152,[1153]=935,[1154]=998,[1155]=2034,[1156]=2034,[1157]=935,[1159]=967,[1161]=999,[1162]=967,[1163]=967,[1170]=2024, [1171]=999,[1174]=936,[1175]=2031,[1189]=967,[1190]=935,[1191]=998,[1192]=998,[1193]=999,[1195]=935,[1200]=935,[1201]=935,[1202]=935,[1203]=935,[1204]=935,[1205]=935,[1206]=935, [1207]=935,[1208]=935,[1209]=935,[1210]=935,[1211]=935,[1212]=935,[1213]=935,[1214]=935,[1215]=935,[1216]=935,[1217]=967,[1218]=935,[1219]=935,[1220]=935,[1221]=935,[1222]=935, [1223]=935,[1224]=967,[1225]=998,[1226]=935,[1227]=935,[1228]=935,[1229]=935,[1230]=935,[1231]=935,[1232]=967,[1233]=967,[1234]=935,[1235]=967,[1236]=935,[1237]=935,[1238]=935, [1239]=935,[1240]=967,[1241]=998,[1242]=935,[1243]=967,[1244]=2036,[1245]=935,[1246]=935,[1247]=935,[1248]=935,[1249]=967,[1250]=998,[1251]=935,[1252]=967,[1253]=2036,[1254]=967, [1255]=999,[1256]=935,[1260]=2024,[1261]=2024,[1262]=2035,[1263]=1152,[1266]=998,[1267]=998,[1268]=935,[1269]=935,[1270]=935,[1272]=936,[1273]=2026,[1274]=999,[1275]=935,[1276]=999, [1278]=998,[1279]=998,[1281]=935,[1283]=935,[1284]=935,[1300]=935,[1301]=935,[1302]=935,[1303]=935,[1304]=967,[1305]=967,[1306]=935,[1307]=967,[1308]=2036,[1309]=935,[1310]=935, [1311]=935,[1312]=935,[1313]=935,[1314]=935,[1315]=967,[1316]=998,[1317]=967,[1318]=935,[1319]=935,[1320]=935,[1321]=935,[1322]=935,[1323]=935,[1324]=935,[1325]=967,[1326]=967, [1327]=935,[1328]=935,[1329]=935,[1330]=935,[1331]=935,[1332]=935,[1333]=967,[1334]=998,[1335]=935,[1336]=935,[1337]=935,[1338]=935,[1339]=935,[1340]=967,[1341]=998,[1342]=967, [1343]=967,[1344]=2024,[1345]=935,[1346]=935,[1347]=935,[1348]=935,[1349]=967,[1350]=967,[1351]=935,[1352]=967,[1353]=2036,[1354]=967,[1355]=935,[1356]=935,[1357]=935,[1358]=935, [1360]=935,[1361]=935,[1362]=935,[1363]=935,[1364]=935,[1365]=935,[1366]=998,[1367]=998,[1368]=935,[1369]=935,[1370]=935,[1371]=935,[1372]=998,[1373]=2026,[1374]=999,[1375]=935, [1376]=999,[1377]=935,[1400]=935,[1401]=935,[1402]=967,[1403]=967,[1404]=935,[1405]=967,[1406]=967,[1407]=2024,[1408]=2034,[1409]=935,[1410]=935,[1411]=935,[1412]=967,[1413]=998, [1414]=935,[1415]=967,[1416]=2036,[1417]=2034,[1418]=935,[1419]=935,[1420]=935,[1421]=967,[1422]=967,[1423]=998,[1424]=967,[1425]=967,[1426]=2024,[1427]=935,[1428]=935,[1429]=967, [1430]=967,[1431]=998,[1432]=935,[1433]=967,[1434]=2036,[1435]=2034,[1436]=935,[1437]=935,[1438]=967,[1439]=967,[1440]=935,[1441]=967,[1442]=2036,[1443]=2024,[1444]=998,[1445]=935, [1446]=935,[1447]=935,[1448]=967,[1449]=998,[1450]=935,[1451]=967,[1452]=2036,[1453]=2024,[1456]=2049,[1457]=2049,[1458]=2049,[1459]=2049,[1460]=2049,[1461]=2049,[1462]=2049,[1463]=2049, [1482]=2049,[1483]=2049,[1484]=2049,[1485]=2049,[1486]=2049,[1500]=935,[1501]=935,[1502]=935,[1503]=935,[1504]=935,[1505]=935,[1506]=935,[1507]=967,[1508]=967,[1509]=935,[1510]=935, [1511]=935,[1512]=935,[1513]=935,[1514]=935,[1515]=935,[1516]=967,[1517]=998,[1518]=935,[1519]=935,[1520]=935,[1521]=935,[1522]=935,[1523]=935,[1524]=967,[1525]=967,[1526]=935, [1527]=935,[1528]=935,[1529]=935,[1530]=935,[1531]=935,[1532]=935,[1533]=935,[1534]=967,[1535]=998,[1536]=935,[1537]=935,[1538]=935,[1539]=935,[1540]=935,[1541]=935,[1542]=935, [1543]=967,[1544]=998,[1545]=935,[1546]=935,[1547]=935,[1548]=935,[1549]=935,[1550]=935,[1551]=935,[1552]=935,[1553]=967,[1600]=935,[1601]=935,[1602]=935,[1603]=935,[1604]=935, [1605]=935,[1606]=935,[1607]=967,[1608]=998,[1609]=935,[1610]=935,[1611]=935,[1612]=935,[1613]=935,[1614]=935,[1615]=935,[1616]=935,[1617]=967,[1618]=935,[1619]=935,[1620]=935, [1621]=935,[1622]=935,[1623]=935,[1624]=935,[1625]=935,[1626]=967,[1627]=935,[1628]=935,[1629]=935,[1630]=935,[1631]=935,[1632]=935,[1633]=935,[1634]=935,[1635]=935,[1636]=935, [1637]=935,[1638]=935,[1639]=935,[1640]=935,[1641]=935,[1642]=935,[1643]=935,[1644]=935,[1645]=935,[1646]=935,[1647]=935,[1648]=935,[1649]=935,[1650]=935,[1651]=935,[1652]=935, [1653]=935,[1664]=2049,[1665]=2049,[1666]=2049,[1667]=2049,[1668]=2049,[1669]=2049,[1670]=2049,[1671]=2049,[1683]=998,[1700]=935,[1701]=935,[1702]=935,[1703]=935,[1704]=935,[1705]=967, [1706]=998,[1707]=967,[1708]=967,[1709]=935,[1710]=935,[1711]=935,[1712]=935,[1713]=935,[1714]=967,[1715]=967,[1716]=935,[1717]=967,[1718]=935,[1719]=935,[1720]=935,[1721]=935, [1722]=935,[1723]=935,[1724]=967,[1725]=998,[1726]=967,[1727]=935,[1728]=935,[1729]=935,[1730]=935,[1731]=935,[1732]=967,[1733]=967,[1734]=935,[1735]=967,[1736]=935,[1737]=935, [1738]=935,[1739]=935,[1740]=935,[1741]=935,[1742]=935,[1743]=967,[1744]=998,[1745]=935,[1746]=935,[1747]=935,[1748]=935,[1749]=935,[1750]=935,[1751]=967,[1752]=998,[1753]=967, [1754]=2049,[1755]=2049,[1756]=2049,[1757]=2049,[1758]=2049,[1759]=2049,[1760]=2049,[1761]=2049,[1762]=2049,[1763]=2049,[1764]=2049,[1765]=2049,[1766]=2049,[1767]=2049,[1768]=2049,[1769]=2049, [1770]=2049,[1771]=2049,[1772]=2049,[1773]=2049,[1774]=2049,[1775]=2049,[1776]=2049,[1777]=2049,[1778]=2049,[1779]=2049,[1780]=2049,[1781]=2049,[1782]=2049,[1783]=2049,[1784]=2049,[1785]=2049, [1786]=2049,[1787]=2049,[1788]=2049,[1789]=2049,[1790]=2049,[1791]=2049,[1792]=2049,[1793]=2049,[1794]=2049,[1795]=2049,[1796]=2049,[1797]=2049,[1798]=2049,[1799]=2049,[1800]=935,[1801]=935, [1802]=935,[1803]=967,[1804]=967,[1805]=935,[1806]=967,[1807]=2036,[1808]=2024,[1809]=935,[1810]=935,[1811]=935,[1812]=935,[1813]=967,[1814]=967,[1815]=998,[1816]=967,[1817]=967, [1818]=935,[1819]=935,[1820]=935,[1821]=935,[1822]=967,[1823]=998,[1824]=967,[1825]=967,[1826]=2024,[1827]=935,[1828]=935,[1829]=935,[1830]=935,[1831]=967,[1832]=998,[1833]=935, [1834]=967,[1835]=2036,[1836]=935,[1837]=935,[1838]=935,[1839]=935,[1840]=967,[1841]=967,[1842]=935,[1843]=967,[1844]=2036,[1845]=935,[1846]=935,[1847]=935,[1848]=935,[1849]=935, [1850]=967,[1851]=998,[1852]=935,[1853]=967,[1854]=935,[1855]=935,[1856]=935,[1857]=935,[1858]=935,[1859]=935,[1860]=935,[1861]=967,[1862]=998,[1863]=935,[1864]=935,[1865]=935, [1866]=935,[1867]=935,[1868]=967,[1869]=967,[1870]=935,[1871]=967,[1872]=935,[1873]=935,[1874]=935,[1875]=967,[1876]=998,[1877]=935,[1878]=967,[1879]=2036,[1880]=2024,[1881]=935, [1882]=935,[1883]=967,[1884]=967,[1885]=935,[1886]=967,[1887]=967,[1888]=2024,[1889]=2034,[1890]=935,[1891]=967,[1892]=967,[1893]=935,[1894]=967,[1895]=967,[1896]=2024,[1897]=2034, [1898]=967,[1899]=935,[1900]=935,[1901]=967,[1902]=967,[1903]=935,[1904]=967,[1905]=2036,[1906]=2024,[1907]=998,[1908]=2049,[1909]=2049,[1910]=2049,[1911]=2049,[1912]=2049,[1913]=2049, [1914]=2049,[1915]=2049,[1916]=2049,[1917]=2049,[1918]=2049,[1919]=2049,[1920]=2049,[1921]=2049,[1922]=2049,[1923]=2049,[1924]=2049,[1925]=2049,[1926]=2049,[1927]=2049,[1928]=2049,[1929]=2049, [1930]=2049,[1931]=2049,[1932]=2049,[1933]=2049,[1934]=2049,[1935]=2049,[1936]=2049,[1937]=2049,[1938]=2049,[1939]=2049,[1940]=2049,[1941]=2049,[1942]=2049,[1943]=2049,[1944]=2049,[1945]=2049, [1946]=2049,[1947]=2049,[1948]=2049,[1949]=2049,[1950]=2049,[1951]=2049,[1952]=2049,[1953]=2049,[1954]=2049,[1955]=2049,[1956]=2049,[1957]=2049,[1958]=2049,[1959]=2049,[1960]=2049,[1961]=2049, [1962]=2049,[1963]=2049,[1964]=2049,[1965]=2049,[1966]=2049,[1967]=2049,[1968]=2049,[1969]=2049,[1970]=2049,[1971]=2049,[1972]=2049,[1973]=2049,[1974]=2049,[1975]=2049,[1976]=2049,[1977]=2049, [1978]=2049,[1979]=2049,[1980]=2049,[1981]=2049,[1982]=2049,[1983]=2049,[1984]=2049,[1985]=2049,[1986]=2049,[1987]=2049,[1988]=2049,[1989]=2049,[1990]=2049,[1991]=2049,[1992]=2049,[1993]=2049, [1994]=2049,[1995]=2049,[1996]=2049,[1997]=2049,[1998]=2049,[1999]=2049,[2000]=935,[2001]=935,[2002]=935,[2003]=935,[2004]=935,[2005]=935,[2006]=935,[2007]=935,[2008]=935,[2009]=935, [2010]=935,[2011]=998,[2012]=935,[2013]=935,[2014]=935,[2015]=935,[2016]=967,[2017]=967,[2018]=936,[2019]=2026,[2020]=936,[2021]=936,[2022]=936,[2023]=936,[2024]=2034,[2025]=2024, [2026]=2036,[2027]=2026,[2028]=2021,[2029]=2022,[2030]=2023,[2031]=2024,[2032]=2026,[2033]=2030,[2034]=2030,[2035]=2030,[2036]=2035,[2037]=2034,[2038]=2041,[2039]=2037,[2040]=2041,[2041]=2041, [2042]=2042,[2043]=2043,[2044]=2044,[2045]=2045,[2046]=2046,[2047]=2047,[2048]=2048,[2049]=2049,[2050]=2044,[2051]=2044,[2052]=2046,[2053]=2047,[2054]=2048,[2055]=2049,[2056]=2049,[2067]=2049, [2068]=2049,[2069]=2049,[2070]=2049,[2071]=2049,[2072]=2049,[2073]=2049,[2074]=2049,[2075]=2049,[2076]=2049,[2077]=2049,[2078]=2049,[2079]=2049,[2080]=2049,[2081]=2049,[2082]=2049,[2083]=2049, [2084]=2049,[2085]=2049,[2086]=2049,[2087]=2049,[2088]=2049,[2089]=2049,[2090]=2049,[2091]=2049,[2092]=2049,[2093]=2049,[2094]=2049,[2095]=2049,[2096]=2049,[2097]=2049,[2098]=2049,[2099]=2049, [2100]=935,[2101]=935,[2102]=935,[2103]=967,[2104]=935,[2105]=2036,[2106]=935,[2107]=935,[2108]=935,[2109]=935,[2110]=967,[2111]=967,[2112]=935,[2113]=935,[2114]=935,[2115]=935, [2116]=935,[2117]=935,[2118]=935,[2119]=935,[2120]=935,[2121]=935,[2122]=935,[2123]=935,[2124]=935,[2125]=935,[2126]=935,[2127]=935,[2128]=967,[2129]=967,[2130]=2049,[2131]=2049, [2132]=2049,[2133]=2049,[2134]=2049,[2135]=2049,[2136]=2049,[2137]=2049,[2138]=2049,[2139]=2049,[2140]=2049,[2141]=2049,[2142]=2049,[2143]=2049,[2144]=2049,[2145]=2049,[2146]=2049,[2147]=2049, [2148]=2049,[2149]=2049,[2150]=2049,[2151]=2049,[2152]=2049,[2153]=2049,[2154]=2049,[2155]=2049,[2156]=2049,[2157]=2049,[2158]=2049,[2159]=2049,[2160]=2049,[2161]=2049,[2162]=2049,[2163]=2049, [2164]=2049,[2165]=2049,[2166]=2049,[2167]=2049,[2168]=2049,[2169]=2049,[2170]=2049,[2171]=2049,[2172]=2049,[2173]=2049,[2174]=2049,[2175]=2049,[2176]=2049,[2177]=2049,[2178]=2049,[2179]=2049, [2180]=2049,[2181]=2049,[2182]=2049,[2183]=2049,[2184]=2049,[2185]=2049,[2186]=2049,[2187]=2049,[2188]=2049,[2189]=2049,[2190]=2049,[2191]=2049,[2192]=2049,[2193]=2049,[2194]=2049,[2195]=2049, [2196]=2049,[2197]=2049,[2198]=2049,[2199]=2049,[2200]=935,[2201]=935,[2202]=935,[2203]=935,[2204]=935,[2205]=967,[2206]=935,[2207]=935,[2208]=935,[2209]=935,[2210]=967,[2211]=935, [2212]=935,[2213]=935,[2214]=935,[2215]=935,[2216]=935,[2217]=998,[2218]=935,[2219]=935,[2220]=935,[2221]=935,[2222]=967,[2223]=967,[2224]=2049,[2225]=2049,[2226]=2049,[2227]=2049, [2228]=2049,[2229]=2049,[2230]=2049,[2231]=2049,[2232]=2049,[2233]=2049,[2234]=2049,[2235]=2049,[2236]=2049,[2237]=2049,[2238]=2049,[2239]=2049,[2240]=2049,[2241]=2049,[2242]=2049,[2243]=2049, [2244]=2049,[2245]=2049,[2246]=2049,[2247]=2049,[2248]=2049,[2249]=2049,[2250]=2049,[2251]=2049,[2252]=2049,[2253]=2049,[2254]=2049,[2255]=2049,[2256]=2049,[2257]=2049,[2258]=2049,[2259]=2049, [2260]=2049,[2261]=2049,[2262]=2049,[2263]=2049,[2264]=2049,[2265]=2049,[2266]=2049,[2267]=2049,[2268]=2049,[2269]=2049,[2270]=2049,[2271]=2049,[2272]=2049,[2273]=2049,[2274]=2049,[2275]=2049, [2276]=2049,[2277]=2049,[2278]=2049,[2279]=2049,[2280]=2049,[2281]=2049,[2282]=2049,[2283]=2049,[2284]=2049,[2285]=2049,[2286]=2049,[2287]=2049,[2288]=2049,[2289]=2049,[2290]=2049,[2291]=2049, [2292]=2049,[2293]=2049,[2294]=2049,[2295]=2049,[2296]=2049,[2297]=2049,[2298]=2049,[2299]=2049,[2300]=935,[2301]=935,[2302]=935,[2303]=967,[2304]=935,[2305]=2024,[2306]=935,[2307]=935, [2308]=935,[2309]=935,[2310]=967,[2311]=967,[2312]=935,[2313]=935,[2314]=935,[2315]=935,[2316]=935,[2317]=967,[2318]=2049,[2319]=2049,[2320]=2049,[2321]=2049,[2322]=2049,[2323]=2049, [2324]=2049,[2325]=2049,[2326]=2049,[2327]=2049,[2328]=2049,[2329]=2049,[2330]=2049,[2331]=2049,[2332]=2049,[2333]=2049,[2334]=2049,[2335]=2049,[2336]=2049,[2337]=2049,[2338]=2049,[2339]=2049, [2340]=2049,[2341]=2049,[2342]=2049,[2343]=2049,[2344]=2049,[2345]=2049,[2346]=2049,[2347]=2049,[2348]=2049,[2349]=2049,[2350]=2049,[2351]=2049,[2352]=2049,[2353]=2049,[2354]=2049,[2355]=2049, [2356]=2049,[2357]=2049,[2358]=2049,[2359]=2049,[2360]=2049,[2361]=2049,[2362]=2049,[2363]=2049,[2364]=2049,[2365]=2049,[2366]=2049,[2367]=2049,[2368]=2049,[2369]=2049,[2370]=2049,[2371]=2049, [2372]=2049,[2373]=2049,[2374]=2049,[2375]=2049,[2376]=2049,[2377]=2049,[2378]=2049,[2379]=2049,[2380]=2049,[2381]=2049,[2382]=2049,[2383]=2049,[2384]=2049,[2385]=2049,[2386]=2049,[2387]=2049, [2388]=2049,[2389]=2049,[2390]=2049,[2391]=2049,[2392]=2049,[2393]=2049,[2394]=2049,[2395]=2049,[2396]=2049,[2397]=2049,[2398]=2049,[2399]=2049,[2400]=935,[2401]=935,[2402]=935,[2403]=967, [2404]=998,[2405]=2036,[2406]=935,[2407]=935,[2408]=935,[2409]=967,[2410]=935,[2411]=2024,[2412]=935,[2413]=935,[2414]=935,[2415]=935,[2416]=935,[2417]=935,[2418]=935,[2419]=935, [2420]=935,[2421]=935,[2422]=935,[2423]=967,[2424]=935,[2425]=935,[2426]=935,[2427]=935,[2428]=935,[2429]=935,[2430]=2049,[2431]=2049,[2432]=2049,[2433]=2049,[2434]=2049,[2435]=2049, [2436]=2049,[2437]=2049,[2438]=2049,[2439]=2049,[2440]=2049,[2441]=2049,[2442]=2049,[2443]=2049,[2444]=2049,[2445]=2049,[2446]=2049,[2447]=2049,[2448]=2049,[2449]=2049,[2450]=2049,[2451]=2049, [2452]=2049,[2453]=2049,[2454]=2049,[2455]=2049,[2456]=2049,[2457]=2049,[2458]=2049,[2459]=2049,[2460]=2049,[2461]=2049,[2462]=2049,[2463]=2049,[2464]=2049,[2465]=2049,[2466]=2049,[2467]=2049, [2468]=2049,[2469]=2049,[2470]=2049,[2471]=2049,[2472]=2049,[2473]=2049,[2474]=2049,[2475]=2049,[2476]=2049,[2477]=2049,[2478]=2049,[2479]=2049,[2480]=2049,[2481]=2049,[2482]=2049,[2483]=2049, [2484]=2049,[2485]=2049,[2486]=2049,[2487]=2049,[2488]=2049,[2489]=2049,[2490]=2049,[2491]=2049,[2492]=2049,[2493]=2049,[2494]=2049,[2495]=2049,[2496]=2049,[2497]=2049,[2498]=2049,[2499]=2049, [2500]=2049,[2501]=2049,[2502]=2049,[2503]=2049,[2504]=2049,[2505]=2049,[2506]=2049,[2507]=2049,[2508]=2049,[2509]=2049,[2510]=2049,[2511]=2049,[2512]=2049,[2513]=2049,[2514]=2049,[2515]=2049, [2516]=2049,[2517]=2049,[2518]=2049,[2519]=2049,[2520]=2049,[2521]=2049,[2522]=2049,[2523]=2049,[2524]=2049,[2525]=2049,[2526]=2049,[2527]=2049,[2528]=2049,[2529]=2049,[2530]=2049,[2531]=2049, [2532]=2049,[2533]=2049,[2534]=2049,[2535]=2049,[2536]=2049,[2537]=2049,[2538]=2049,[2539]=2049,[2540]=2049,[2541]=2049,[2542]=2049,[2543]=2049,[2544]=2049,[2545]=2049,[2546]=2049,[2547]=2049, [2548]=2049,[2549]=2049,[2550]=2049,[2551]=2049,[2552]=2049,[2553]=2049,[2554]=2049,[2555]=2049,[2556]=2049,[2557]=2049,[2558]=2049,[2559]=2049,[2560]=2049,[2561]=2049,[2562]=2049,[2563]=2049, [2564]=2049,[2565]=2049,[2566]=2049,[2567]=2049,[2568]=2049,[2569]=2049,[2570]=2049,[2571]=2049,[2572]=2049,[2573]=2049,[2574]=2049,[2575]=2049,[2576]=2049,[2577]=2049,[2578]=2049,[2579]=2049, [2580]=2049,[2581]=2049,[2582]=2049,[2583]=2049,[2584]=2049,[2585]=2049,[2586]=2049,[2587]=2049,[2588]=2049,[2589]=2049,[2590]=2049,[2591]=2049,[2592]=2049,[2593]=2049,[2594]=2049,[2595]=2049, [2596]=2049,[2597]=2049,[2598]=2049,[2599]=2049,[2600]=2049,[2601]=2049,[2602]=2049,[2603]=2049,[2604]=2049,[2605]=2049,[2606]=2049,[2607]=2049,[2608]=2049,[2609]=2049,[2610]=2049,[2611]=2049, [2612]=2049,[2613]=2049,[2614]=2049,[2615]=2049,[2616]=2049,[2617]=2049,[2618]=2049,[2619]=2049,[2620]=2049,[2621]=2049,[2622]=2049,[2623]=2049,[2624]=2049,[2625]=2049,[2626]=2049,[2627]=2049, [2628]=2049,[2629]=2049,[2630]=2049,[2631]=2049,[2632]=2049,[2633]=2049,[2634]=2049,[2635]=2049,[2636]=2049,[2637]=2049,[2638]=2049,[2639]=2049,[2640]=2049,[2641]=2049,[2642]=2049,[2643]=2049, [2644]=2049,[2645]=2049,[2646]=2049,[2647]=2049,[2648]=2049,[2649]=2049,[2650]=2049,[2651]=2049,[2652]=2049,[2653]=2049,[2654]=2049,[2655]=2049,[2656]=2049,[2657]=2049,[2658]=2049,[2659]=2049, [2660]=2049,[2661]=2049,[2662]=2049,[2663]=2049,[2664]=2049,[2665]=2049,[2666]=2049,[2667]=2049,[2668]=2049,[2669]=2049,[2670]=2049,[2671]=2049,[2672]=2049,[2673]=2049,[2674]=2049,[2675]=2049, [2676]=2049,[2677]=2049,[2678]=2049,[2679]=2049,[2680]=2049,[2681]=2049,[2682]=2049,[2683]=2049,[2684]=2049,[2685]=2049,[2686]=2049,[2687]=2049,[2688]=2049,[2689]=2049,[2690]=2049,[2691]=2049, [2692]=2049,[2693]=2049,[2694]=2049,[2695]=2049,[2696]=2049,[2697]=2049,[2698]=2049,[2699]=2049,[2700]=2049,[2701]=2049,[2702]=2049,[2703]=2049,[2704]=2049,[2705]=2049,[2706]=2049,[2707]=2049, [2708]=2049,[2709]=2049,[2710]=2049,[2711]=2049,[2712]=2049,[2713]=2049,[2714]=2049,[2715]=2049,[2716]=2049,[2717]=2049,[2718]=2049,[2719]=2049,[2720]=2049,[2721]=2049,[2722]=2049,[2723]=2049, [2724]=2049,[2725]=2049,[2726]=2049,[2727]=2049,[2728]=2049,[2729]=2049,[2730]=2049,[2731]=2049,[2732]=2049,[2733]=2049,[2734]=2049,[2735]=2049,[2736]=2049,[2737]=2049,[2738]=2049,[2739]=2049, [2740]=2049,[2741]=2049,[2742]=2049,[2743]=2049,[2744]=2049,[2745]=2049,[2746]=2049,[2747]=2049,[2748]=2049,[2749]=2049,[2750]=2049,[2751]=2049,[2752]=2049,[2753]=2049,[2754]=2049,[2755]=2049, [2756]=2049,[2757]=2049,[2758]=2049,[2759]=2049,[2760]=2049,[2761]=2049,[2762]=2049,[2763]=2049,[2764]=2049,[2765]=2049,[2766]=2049,[2767]=2049,[2768]=2049,[2769]=2049,[2770]=2049,[2771]=2049, [2772]=2049,[2773]=2049,[2774]=2049,[2775]=2049,[2776]=2049,[2777]=2049,[2778]=2049,[2779]=2049,[2780]=2049,[2781]=2049,[2782]=2049,[2783]=2049,[2784]=2049,[2785]=2049,[2786]=2049,[2787]=2049, [2788]=2049,[2789]=2049,[2790]=2049,[2791]=2049,[2792]=2049,[2793]=2049,[2794]=2049,[2795]=2049,[2796]=2049,[2797]=2049,[2798]=2049,[2799]=2049,[2800]=2049,[2801]=2049,[2802]=2049,[2803]=2049, [2804]=2049,[2805]=2049,[2806]=2049,[2807]=2049,[2808]=2049,[2809]=2049,[2810]=2049,[2811]=2049,[2812]=2049,[2813]=2049,[2814]=2049,[2815]=2049,[2816]=2049,[2817]=2049,[2818]=2049,[2819]=2049, [2820]=2049,[2821]=2049,[2822]=2049,[2823]=2049,[2824]=2049,[2825]=2049,[2826]=2049,[2827]=2049,[2828]=2049,[2829]=2049,[2830]=2049,[2831]=2049,[2832]=2049,[2833]=2049,[2834]=2049,[2835]=2049, [2836]=2049,[2837]=2049,[2838]=2049,[2839]=2049,[2840]=2049,[2841]=2049,[2842]=2049,[2843]=2049,[2844]=2049,[2845]=2049,[2846]=2049,[2847]=2049,[2848]=2049,[2849]=2049,[2850]=2049,[2851]=2049, [2852]=2049,[2853]=2049,[2854]=2049,[2855]=2049,[2856]=2049,[2857]=2049,[2858]=2049,[2859]=2049,[2860]=2049,[2861]=2049,[2862]=2049,[2863]=2049,[2864]=2049,[2865]=2049,[2866]=2049,[2867]=2049, [2868]=2049,[2869]=2049,[2870]=2049,[2871]=2049,[2872]=2049,[2873]=2049,[2874]=2049,[2875]=2049,[2876]=2049,[2877]=2049,[2878]=2049,[2879]=2049,[2880]=2049,[2881]=2049,[2882]=2049,[2883]=2049, [2884]=2049,[2885]=2049,[2886]=2049,[2887]=2049,[2888]=2049,[2889]=2049,[2890]=2049,[2891]=2049,[2892]=2049,[2893]=2049,[2894]=2049,[2895]=2049,[2896]=2049,[2897]=2049,[2898]=2049,[2899]=2049, [2900]=2049,[2901]=2049,[2902]=2049,[2903]=2049,[2904]=2049,[2905]=2049,[2906]=2049,[2907]=2049,[2908]=2049,[2909]=2049,[2910]=2049,[2911]=2049,[2912]=2049,[2913]=2049,[2914]=2049,[2915]=2049, [2916]=2049,[2917]=2049,[2918]=2049,[2919]=2049,[2920]=2049,[2921]=2049,[2922]=2049,[2923]=2049,[2924]=2049,[2925]=2049,[2926]=2049,[2927]=2049,[2928]=2049,[2929]=2049,[2930]=2049,[2931]=2049, [2932]=2049,[2933]=2049,[2934]=2049,[2935]=2049,[2936]=2049,[2937]=2049,[2938]=2049,[2939]=2049,[2940]=2049,[2941]=2049,[2942]=2049,[2943]=2049,[2944]=2049,[2945]=2049,[2947]=2049,[2948]=935, [2949]=2049,[2950]=935,[2953]=2049,[2955]=935,[2956]=2049,[2970]=2049,[2971]=2049,[2972]=2049,[2973]=2049,[2974]=2049,[2975]=2049,[2976]=2049,[2977]=2049,[2978]=2049,[2979]=2049,[2980]=2049, [2981]=2049,[2982]=2049,[2983]=2049,[2984]=2049,[2985]=2049,[2986]=2049,[2987]=2049,[2988]=2049,[2989]=2049,[2990]=2049,[2991]=2049,[2992]=2049,[2993]=2049,[2994]=2049,[2995]=2049,[2996]=2049, [2997]=2049,[2998]=2049,[2999]=2049,} -- usually not needed, but might be useful for shards with custom hue file function GenerateBaseHueList () Load_Hue() local max = math.max local abs = math.abs local count_derived = 0 local count_special = 0 local iMaxHueID = gHueLoader:GetMaxHueID() print("iMaxHueID",iMaxHueID) local huelist = {} local basehues = {} for hue = 0,iMaxHueID-1 do local yr,yg,yb,ya = gHueLoader:GetColor(hue,31) local bIsGrey = yr == yg and yg == yb if (bIsGrey) then local bAllGrey = true for col = 0,31 do local xr,xg,xb,xa = gHueLoader:GetColor(hue,col) if (xr == xg and xg == xb) then else bAllGrey = false end --~ print("col",hue,col,":",xr,xg,xb,xa) end if (bAllGrey) then local palette = {} for col = 0,31 do local xr,xg,xb,xa = gHueLoader:GetColor(hue,col) palette[col] = xr end if (palette[31] > 0) then basehues[hue] = palette end --~ print("basehue",hue,table.concat(palette,",")) --~ print("col",hue,col,bAllGrey,":",yr,yg,yb,ya) end ---- 1149,2042-2049 --- col 2042 nil : 1 1 1 0 --~ col 2057 nil : 1 1 1 0 end end print("numbases",countarr(basehues)) local tolerance = 0.15 -- the maximum error from the basehue has to be smaller than 30% local basehuelist = {} for hue = 0,iMaxHueID-1 do if (math.mod(hue,100) == 0) then print("hue",hue) end local yr,yg,yb,ya = gHueLoader:GetColor(hue,31) local ymax = max(yr,yg,yb) local bestbasehue local bestmaxerror for basehue,palette in pairs(basehues) do local basef = ymax / palette[31] local fr = max(0,min(1,basef*yr)) local fg = max(0,min(1,basef*yg)) local fb = max(0,min(1,basef*yb)) local maxerror = 0 for col = 0,31 do local xr,xg,xb,xa = gHueLoader:GetColor(hue,col) local curerror = max( abs(xr - palette[col]*fr), abs(xg - palette[col]*fg), abs(xb - palette[col]*fb)) if (curerror > maxerror) then maxerror = curerror end --~ print("col",hue,col,":",xr,xg,xb,xa) end if (maxerror < tolerance and ((not bestmaxerror) or maxerror < bestmaxerror)) then bestmaxerror = maxerror bestbasehue = basehue end end if (bestbasehue) then count_derived = count_derived + 1 table.insert(basehuelist,"["..hue.."]="..bestbasehue) else count_special = count_special + 1 end end print("derived:",count_derived,"special:",count_special) local txt = "gBaseHues = { " for k,v in pairs(basehuelist) do if (math.mod(k,16) == 0) then txt = txt .. "\n" end txt = txt .. v .. "," end print(txt.."}") os.exit(0) end