Functions | |
int | cucul_invert (cucul_canvas_t *) |
Invert a canvas' colours. | |
int | cucul_flip (cucul_canvas_t *) |
Flip a canvas horizontally. | |
int | cucul_flop (cucul_canvas_t *) |
Flip a canvas vertically. | |
int | cucul_rotate (cucul_canvas_t *) |
Rotate a canvas. |
int cucul_invert | ( | cucul_canvas_t * | cv | ) |
Invert a canvas' colours (black becomes white, red becomes cyan, etc.) without changing the characters in it.
This function never fails.
cv | The canvas to invert. |
int cucul_flip | ( | cucul_canvas_t * | cv | ) |
Flip a canvas horizontally, choosing characters that look like the mirrored version wherever possible. Some characters will stay unchanged by the process, but the operation is guaranteed to be involutive: performing it again gives back the original canvas.
This function never fails.
cv | The canvas to flip. |
int cucul_flop | ( | cucul_canvas_t * | cv | ) |
Flip a canvas vertically, choosing characters that look like the mirrored version wherever possible. Some characters will stay unchanged by the process, but the operation is guaranteed to be involutive: performing it again gives back the original canvas.
This function never fails.
cv | The canvas to flop. |
int cucul_rotate | ( | cucul_canvas_t * | cv | ) |
Apply a 180-degree transformation to a canvas, choosing characters that look like the upside-down version wherever possible. Some characters will stay unchanged by the process, but the operation is guaranteed to be involutive: performing it again gives back the original canvas.
This function never fails.
cv | The canvas to rotate. |