IconGenerator is a command-line tool for generating icons with customizable options.
./icon_gen.swift f5a7 EE4B2B --font-name tabler-iconsThis command generates an icon using the tabler-icons font, with the icon unicode f5a7 and the color EE4B2B.
- Intro
- Sample Command
- Table of Contents
- Usage
- Examples
- List of available icons
- Compilation
- Contributing
- Author
- License
icon_gen.swift [options] <icon-unicode> <icon-color>icon-unicode: hexadecimal unicode for iconicon-color: bacground lligther color provided as hexadeciaml value
--font-name <name>: Specifies the font name to use for the icon. The default font isFontAwesome.--output <file>: Defines the output file name. If not specified, the default output file isoutput.png.--no-gradient: Disables the gradient background for the icon.--reversed: Reverses the icon and background colors.--font-color <color>: Sets the font color. The default font color isffffff(white).--verbose: Enables verbose output, providing more detailed information during the icon generation process.
icon_gen.swift f10b 3498db --output icon.png In this example, the command generates an icon using the FontAwesome font, with the icon unicode f10b and the bacground color gradient starting with 3498db. The output file is named icon.png.
icon_gen.swift f10b 3498db --output icon_reversed.png --reversedIn this example, the command generates an icon using the FontAwesome font, with the icon unicode f10b and the white background color (default font color). Font color is a gradient with ligher color 3498db. The output file is named icon_reversed.png.
icon_gen.swift f10b 3498db --output icon_no_gradient.png --no-gradientIn this example, the command generates an icon using the FontAwesome font, with the icon unicode f10b and the bacground color 3498db. The output file is named icon.png.
icon_gen.swift f10b 3498db --output icon_no_gradient_reversed.png --no-gradient --reversedIn this example, the command generates an icon using the FontAwesome font, with the icon unicode f10b and the bacground color 3498db. The output file is named icon.png.
icon_gen.swift f10b ffffff --font-color 3498db --no-gradient --reversed --output icon_gradient.pngIn this example, the command generates an icon using the FontAwesome font, with the icon unicode f10b. The icon has gradient starting with white. Bacground is plain 3498db.
The following is a list of available icon sets that can be used with IconGenerator:
- FontAwesome: A popular icon set and toolkit with a wide range of icons for various purposes. You can find the complete list of FontAwesome icons here.
- Tabler Icons: A set of over 800 free and open-source icons designed for web and mobile interfaces. You can find the complete list of Tabler Icons here.
To use an icon from one of these sets, specify the --font-name option followed by the name of the icon set (e.g., --font-name tabler-icons).
To compile the IconGenerator tool, you can use the make command. This will build the project and generate the executable file icon_gen. Ensure you have make installed on your system before running the command.
makeThis command will execute the instructions defined in the Makefile, compiling the source code and producing the final executable. Once the compilation is complete, you can run the IconGenerator tool using the generated executable.
Contributions are welcome! Please fork the repository and submit a pull request.
IconGenerator was built by Maciej Gad. Maciej is a software developer with a passion for creating efficient and user-friendly applications. With a background in iOS development, Maciej has worked on various projects ranging from small utilities to large-scale applications. For more information, visit maciejgad.pl or follow him on GitHub and LinkedIn.
This project is licensed under the MIT License. See the LICENSE file for details.