Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 4.18 KB

README.md

File metadata and controls

84 lines (60 loc) · 4.18 KB
ConsoleCoatCraft

Static Badge GitHub contributors GitHub top language GitHub Repo stars

Key Features

  1. Flag Generation: Generate flags with customizable dimensions, colors, and designs.
  2. Coat of Arms: Incorporate coat of arms patterns into flags with various sizes and positions.
  3. Multiple Flag Types: Create horizontal, vertical, and plain flags to suit different design preferences.
  4. 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!
  5. Rendering Options: Render flags and coat of arms patterns for display or further processing.

Examples

  1. Vertical Flag:

  1. Horizontal Flag:

UML class diagram

uml class diagram

Code

  1. 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.
CoatOfArms generate()

  1. 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.
HorizontalPlainFlag generate()

  1. Flag.display(): Displays all types of Flags.
HorizontalPlainFlag generate()

  1. ColorUtils.importBackgroundColors() & Utils.importData(): Imports background colors data from a specified file and updates the corresponding data structure.
HorizontalPlainFlag generate()