Skip to content

Commit 4ff7b1c

Browse files
committed
add instructions, include instructions and license in build
1 parent 2c2a15b commit 4ff7b1c

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

FlagGeneration/FlagGeneration.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,16 @@
115115
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
116116
</Content>
117117
</ItemGroup>
118+
<ItemGroup>
119+
<!-- Copy license and instructions to output -->
120+
<Content Include="..\LICENSE">
121+
<Link>LICENSE</Link>
122+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
123+
</Content>
124+
125+
<Content Include="instructions.txt">
126+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
127+
</Content>
128+
</ItemGroup>
118129
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
119130
</Project>

FlagGeneration/instructions.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
###### How to use the flag generator ######
2+
3+
4+
The generator is a simple console application. To generate flags, simply follow these steps:
5+
- Download the latest release from https://github.com/p-svacha/ImageGeneration/releases
6+
- Unpack the .zip file.
7+
- Open the CLI of your choice and navigate to the unpacked directory (containing `FlagGenerator.exe`)
8+
- Run FlagGeneration.exe with your parameters
9+
10+
The generator requires 4 parameters (in this order):
11+
- directory: The path (absolute or relative) to the directory, where your new image files with the flags will be saved.
12+
- type: Must be "s" or "m". s generates a single flag with a specified seed, m generates multiple random flags.
13+
- number: Must be a number. When generating a single flag, this number represents the seed. When generating multiple flags, this number represents the amount of flags.
14+
- format: Must be "svg" or "png". The format of the generated image files.
15+
16+
17+
Examples (default Windows terminal):
18+
- To generate a single flag as a png with the seed 1312 in the current directory, run the command line with: `FlagGeneration.exe . s 1312 png`
19+
- To generate 10 random flags as svg's in the current directory, run the command line with: `FlagGeneration.exe . m 10 svg`
20+
21+
22+
23+
###### Customizing predefined symbols ######
24+
25+
Flags can contain various symbols. Often these symbols are procedurally generated, but there is also a chance that a symbol of a predefined set can appear.
26+
27+
These predefined symbols are defined as `.svg` Files and are located in the `Resources/CoatOfArms/` directory. A set of around 200 predefined symbols is already included in the project.
28+
29+
The set of predefined symbols that can appear in flags can be easily customized by just changing the content of the `Resources/CoatOfArms/` directory. All files in there can appear in flags with an equal chance.

0 commit comments

Comments
 (0)