RSS DEV Community

Obtenha a Sintaxe de uma Cor Hexadecimal para o Terminal (ANSI RGB)

The author creates CLI and TUI applications that use ANSI RGB colors and wanted to automate the process of selecting and testing colors. They created a tool called hexter to quickly and easily obtain the syntax for a hexadecimal color in ANSI RGB format. Hexter is a command-line utility and API that can be integrated into projects. To install hexter, you need a C++ compiler (GCC or Clang) and CMake installed on your system. After cloning the repository, you can build and install hexter using CMake. The usage is simple: run the hexter command and provide the hexadecimal color code with or without the "#" symbol. You can also use hexter with a file containing a theme of colors and loop through them to get the output. The API can be used by including the header file and using the hexter::color function to get the hexadecimal color. The API also includes an hexter::off function to turn off a color. For more information, you can access the repository on GitHub and report issues or send pull requests.
dev.to
dev.to
Obtenha a Sintaxe de uma Cor Hexadecimal para o Terminal (ANSI RGB)
Create attached notes ...