libcucul canvas transformation


Functions

void cucul_invert (cucul_canvas_t *)
 Invert a canvas' colours.
void cucul_flip (cucul_canvas_t *)
 Flip a canvas horizontally.
void cucul_flop (cucul_canvas_t *)
 Flip a canvas vertically.
void cucul_rotate (cucul_canvas_t *)
 Rotate a canvas.

Detailed Description

These functions perform horizontal and vertical canvas flipping.

Function Documentation

void cucul_invert cucul_canvas_t cv  ) 
 

This function inverts a canvas' colours (black becomes white, red becomes cyan, etc.) without changing the characters in it.

Parameters:
cv The canvas to invert.

void cucul_flip cucul_canvas_t cv  ) 
 

This function flips a canvas horizontally, choosing characters that look like the mirrored version wherever possible.

Parameters:
cv The canvas to flip.

void cucul_flop cucul_canvas_t cv  ) 
 

This function flips a canvas vertically, choosing characters that look like the mirrored version wherever possible.

Parameters:
cv The canvas to flop.

void cucul_rotate cucul_canvas_t cv  ) 
 

This function applies a 180 degrees transformation to a canvas, choosing characters that look like the mirrored version wherever possible.

Parameters:
cv The canvas to rotate.