ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
foreground.h
Go to the documentation of this file.
1#pragma once
2
15
16#include <stddef.h>
18#include <libplatform/terminal.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24// Greyscale functions
25char *image_print(const image_t *p, const char *palette);
26char *image_print_color(const image_t *p, const char *palette);
27
28// 256-color functions
29char *image_print_256color(const image_t *p, const char *palette);
30
31// 16-color functions
32char *image_print_16color(const image_t *p, const char *palette);
33
34// Truecolor foreground compatibility entry point; shares UTF-8 and RLE handling.
35char *image_print_color_utf8(const image_t *p, const char *palette);
36
37// 16-color dithered functions
38char *image_print_16color_dithered(const image_t *p, const char *palette);
39char *image_print_16color_dithered_with_background(const image_t *image, bool use_background, const char *palette);
40
42
43#ifdef __cplusplus
44}
45#endif
char * image_print(const image_t *p, const char *palette)
Definition foreground.c:12
char * image_print_color_utf8(const image_t *p, const char *palette)
Definition foreground.c:20
char * image_print_color(const image_t *p, const char *palette)
Definition foreground.c:16
char * image_print_16color_dithered(const image_t *p, const char *palette)
Definition foreground.c:32
char * image_print_256color(const image_t *p, const char *palette)
Definition foreground.c:24
char * image_print_16color_dithered_with_background(const image_t *image, bool use_background, const char *palette)
Definition foreground.c:36
char * image_print_16color(const image_t *p, const char *palette)
Definition foreground.c:28
SIMD-friendly storage for one RGB pixel. r, g, and b hold the color channels and padding keeps the la...