ParadoxGameConverters / Vic2ToHoI4

Converts Victoria 2 saves into Hearts of Iron 4 mods.
MIT License
28 stars 21 forks source link

Add colors to regions #1179

Open Idhrendur opened 2 years ago

Idhrendur commented 2 years ago

Use them to define map and flag colors for unrecognized nations.

Maybe also use them to tweak the color of dominions from the parent country colors.

IohannesIohannium commented 2 years ago

Added them in the configurable through #1414. They should be added in code. While "unrecognized" nations would simply get the region's true color, generated dominions should have the colour calculated by two parts overlord, one part region. That is, if the overlord is { A B C } and the region { X Y Z }, the generated dominion's color should be { [(2A+X)/3] [(2B+Y)/3] [(2C+Z)/3] }, rounded to integers.

Idhrendur commented 2 years ago

The particulars of the generated dominion colors I'd tweak. They should be modified from within the HSV color space so they're recognizably similar to the overlord color.