ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
foreground.h File Reference

Go to the source code of this file.

Functions

char * image_print (const image_t *p, const char *palette)
char * image_print_color (const image_t *p, const char *palette)
char * image_print_256color (const image_t *p, const char *palette)
char * image_print_16color (const image_t *p, const char *palette)
char * image_print_color_utf8 (const image_t *p, const char *palette)
char * image_print_16color_dithered (const image_t *p, const char *palette)
char * image_print_16color_dithered_with_background (const image_t *image, bool use_background, const char *palette)

Function Documentation

◆ image_print()

char * image_print ( const image_t * p,
const char * palette )

Definition at line 12 of file foreground.c.

12 {
13 return ascii_render(image, palette, ASCII_COLOR_NONE, false, false, simd_cells_backend());
14}
const simd_cells_t * simd_cells_backend(void)
Definition cells.c:70
char * ascii_render(const image_t *image, const char *palette, ascii_color_t mode, bool background, bool dither, const simd_cells_t *ops)

◆ image_print_16color()

char * image_print_16color ( const image_t * p,
const char * palette )

Definition at line 28 of file foreground.c.

28 {
29 return ascii_render(image, palette, ASCII_COLOR_16, false, false, simd_cells_backend());
30}

◆ image_print_16color_dithered()

char * image_print_16color_dithered ( const image_t * p,
const char * palette )

Definition at line 32 of file foreground.c.

32 {
33 return ascii_render(image, palette, ASCII_COLOR_16, false, true, simd_cells_backend());
34}

◆ image_print_16color_dithered_with_background()

char * image_print_16color_dithered_with_background ( const image_t * image,
bool use_background,
const char * palette )

Definition at line 36 of file foreground.c.

36 {
37 return ascii_render(image, palette, ASCII_COLOR_16, background, true, simd_cells_backend());
38}

◆ image_print_256color()

char * image_print_256color ( const image_t * p,
const char * palette )

Definition at line 24 of file foreground.c.

24 {
25 return ascii_render(image, palette, ASCII_COLOR_256, false, false, simd_cells_backend());
26}

◆ image_print_color()

char * image_print_color ( const image_t * p,
const char * palette )

Definition at line 16 of file foreground.c.

16 {
17 return ascii_render(image, palette, ASCII_COLOR_TRUE, false, false, simd_cells_backend());
18}

◆ image_print_color_utf8()

char * image_print_color_utf8 ( const image_t * p,
const char * palette )

Definition at line 20 of file foreground.c.

20 {
21 return ascii_render(image, palette, ASCII_COLOR_TRUE, false, false, simd_cells_backend());
22}

References ASCII_COLOR_TRUE, ascii_render(), and simd_cells_backend().