jeheydorn / nortantis

Nortantis is a fantasy map generator. It uses a simple tectonic plate simulation to create islands and continents with trees, rivers, and mountains. The result has the appearance of an old-fashioned hand-drawn map.
GNU Affero General Public License v3.0
78 stars 23 forks source link

Request regarding Color of City Icons #20

Open Aran-Tar opened 5 months ago

Aran-Tar commented 5 months ago

City and Town icons sort of disappear in wooded areas and mountains. Might it be possible to change the color of these icons, or somehow outline them?

jeheydorn commented 4 months ago

There is no built-in way to do that in Nortantis, but you can change the images in an app like Krita or Gimp. To do this, in Nortantis, open your map, then go to Edit -> Custom Images Folder. Select or create an empty folder, and Nortantis will automatically copy its built-in images into that folder when you press OK in the Custom Images Folder popup window. Then you can go to that folder and modify the images as you desire.

Just remember that to get the changes to reflect in Nortantis, you need to either close and reopen Nortantis, or go to File -> Refresh Images and Redraw (Ctrl + R).

jeheydorn commented 4 months ago

I should also mention that outlining the images might give you unexpected results when Nortantis tries to decide how to draw transparency in the images (assuming you mean to draw the outline around the entire image). This is because it has an algorithm that tries to determine which pixels are inside versus outside the “content”, so that transparent pixels inside the content draw the background texture, but transparent pixels outside the content show images drawn behind that one. For example, if I’m drawing a line-art style mountain, then I don’t want to see the mountain behind show through when drawing the pixels on the mountain, but I do want to see the mountain behind it when drawing the pixels outside of the mountain, such as the corners and edges.

I’m considering someday writing some tutorials on more advanced functionality like this.

Coloring images will work just fine.