- Flag Generation: Generate flags with customizable dimensions, colors, and designs.
- Coat of Arms: Incorporate coat of arms patterns into flags with various sizes and positions.
- Multiple Flag Types: Create horizontal, vertical, and plain flags to suit different design preferences.
- Color Customization: Choose from a wide range of colors for both flag backgrounds and coat of arms, if non fit you can add your own!
- Rendering Options: Render flags and coat of arms patterns for display or further processing.
- Horizontal FlagV:
CoatOfArms fox = new CoatOfArms(26, "Fox", "Black", "center", "middle")
HorizontalFlag horizontalFlag = new HorizontalFlag(62, 32, fox, "orange", "black", "white", "orange " orange", "white", "black", "orange")
horizontalFlag.display();
- Vertical Flag:
CoatOfArms fox = new CoatOfArms(26, "Dolphin", yellow", "left", "middle")
VerticalFlag verticalFlag = new VerticalFlag (62, 32, dolphin, "Black", "Yellow")
verticalFlag.display()
- Nordic Cross Flag
NordicCrossFlag ncf = new NordicCrossFlag(72, 46, "red", "blue", "white");
ncf.display();
- CoatOfArms.generate(): Generates the coat of arms pattern as an array of strings. Each string represents a row in the pattern, with characters representing the coat of arms symbol or background. The method reads the symbol image associated with the coat of arms, resizes it to the specified size, and converts it into a pattern of characters representing the image pixels. Each pixel is represented by two characters: "██" for non-transparent pixels and " " for transparent pixels.
- HorizontalPlainFlag.generate(): Generates the horizontal plain flag pattern as an array of strings. The method generates a flag based on the width, height and colors picked by the user.
- Flag.display(): Displays all types of Flags.
- ColorUtils.importBackgroundColors() & Utils.importData(): Imports background colors data from a specified file and updates the corresponding data structure.