ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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:61
#define ascii_render
SIMD-friendly storage for one RGB pixel. r, g, and b hold the color channels and padding keeps the la...

References ASCII_COLOR_TRUE, ascii_render, and simd_cells_backend().