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

Go to the source code of this file.

Functions

char * image_print_color_background (const image_t *p, const char *palette)
 Convert image to colored ASCII art with background colors.

Function Documentation

◆ image_print_color_background()

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

Convert image to colored ASCII art with background colors.

Parameters
pImage pointer
paletteCharacter palette for luminance mapping
Returns
Allocated ASCII string with background color codes (caller must free), or NULL on error

Definition at line 4 of file background.c.

4 {
5 return ascii_render(image, palette, ASCII_COLOR_TRUE, true, false, simd_cells_backend());
6}
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)

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