https://github.com/robloach/base16-c
Base16 and Base24 Templates for C/C++
https://github.com/robloach/base16-c
base16 base16-template base24 header-only
Last synced: 8 months ago
JSON representation
Base16 and Base24 Templates for C/C++
- Host: GitHub
- URL: https://github.com/robloach/base16-c
- Owner: RobLoach
- License: mit
- Created: 2024-07-27T23:19:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-26T05:19:38.000Z (over 1 year ago)
- Last Synced: 2025-03-30T18:01:58.282Z (about 1 year ago)
- Topics: base16, base16-template, base24, header-only
- Language: C
- Homepage:
- Size: 473 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# base16-c
C Headers for [Base16] and [Base24] color schemes, for use in [C](https://en.wikipedia.org/wiki/C_(programming_language)) or [C++](https://en.wikipedia.org/wiki/C%2B%2B).
## Usage
``` c
#include
#define BASE16_IMPLEMENTATION
#include "base24-dracula.h"
int main() {
printf("Scheme: %s\n", base24_dracula.name);
printf(" R: %d\n", base24_dracula.base[2].r);
printf(" G: %d\n", base24_dracula.base[2].g);
printf(" B: %d\n", base24_dracula.base[2].b);
// Scheme: Dracula
// R: 68
// G: 52
// R: 71
return 0;
}
```
## Contributing
See [`CONTRIBUTING.md`], which contains building and contribution
instructions.
[base16]: https://github.com/tinted-theming/home
[base24]: https://github.com/tinted-theming/base24/
[xfce4-terminal]: https://docs.xfce.org/apps/terminal/start
[`CONTRIBUTING.md`]: CONTRIBUTING.md