https://github.com/hrszpuk/odin-color
A simple, colored-like ANSI color package for the Odin programming language!
https://github.com/hrszpuk/odin-color
ansi color colored console library odin package terminal
Last synced: 3 months ago
JSON representation
A simple, colored-like ANSI color package for the Odin programming language!
- Host: GitHub
- URL: https://github.com/hrszpuk/odin-color
- Owner: hrszpuk
- License: mit
- Created: 2023-07-06T21:14:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T11:27:31.000Z (3 months ago)
- Last Synced: 2025-02-02T12:27:18.885Z (3 months ago)
- Topics: ansi, color, colored, console, library, odin, package, terminal
- Language: Odin
- Homepage:
- Size: 42 KB
- Stars: 13
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-odin - Terminal Color - color/blob/main/LICENSE) | CLI, Utility (Libraries / Other)
- awesome-odin - Terminal Color - color/blob/main/LICENSE) | CLI, Utility (Libraries / Other)
README
# Odin color
A simple ANSI color package similar to Rust's colored crate.[](https://github.com/hrszpuk/odin-color "Go to GitHub repo")
[](https://github.com/hrszpuk/odin-color)
[](https://github.com/hrszpuk/odin-color)
[](https://github.com/hrszpuk/odin-color/releases/)
[](#license)
[](https://github.com/hrszpuk/odin-color/issues)
[Read more in our documentation](https://github.com/hrszpuk/odin-color/edit/main/DOCS.md)
or [check out some examples](https://github.com/hrszpuk/odin-color/edit/main/examples/README.md)## Installation
### Submodule
Create an external folder in your project's root directory.
Add the project as a submodule like in the example below:
```
git submodule add https://github.com/hrszpuk/odin-color.git external/odin-color
```
Import the package using a relative path: `import color "./external/odin-color`.### Shared collection
Download the repository code using git and place the folder in your shared/external collection directory.
Import the package using `import color "collection-name:odin-color"` and build/run with the flag `--collection:collection-name=/path/to/collection`.