aa_render(3)

aa_render3

Convert image buffer to ascii-art.

Usage

#include <aalib.h>

void aa_render
(

aa_context *c,

const aa_renderparams *p,

int x1,

int y1,

int x2,

int y2
);

Parameters

aa_context *c

Specifies the AA-lib context to operate on.

const aa_renderparams *p

Rendering parametters used to specify brightness, gamma correction and other usefull stuff. Use aa_defrenderparams for default values.

int x1

Column of top left coner of rendered area (in characters!).

int y1

Row of top left coner of rendered area.

int x2

Column of bottom right coner of rendered area.

int y2

Row of bottom right coner of rendered area.

Overview

This function does the trick of converting the emulated framebuffer into high quality ASCII-art. If you want to be really fast, you might use aa_fastrender. If you want to emulate palette, use aa_renderpalette.

Note that to see the effect you need to call aa_flush too.

First call to this function may take a while, because the rendering tables are produced.

Releases

Unchanged in 13 releases since Debian 3.0 (Woody).

  1. 3.0–Arch

From aalib 1.4rc5-19 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.