That Terminal
A terminal emulator designed for video making purposes.
person.hh File Reference

Defines PersonTransform(), which renders a person animation on the screen. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void PersonTransform (unsigned &bgcolor, unsigned &fgcolor, unsigned width, unsigned x, unsigned y, unsigned action_type)
 
int PersonBaseX (unsigned window_width)
 

Detailed Description

Defines PersonTransform(), which renders a person animation on the screen.

Function Documentation

◆ PersonBaseX()

int PersonBaseX ( unsigned  window_width)

Retrieves timer-based person starting X coordinates for a window of given width

Parameters
window_widthwindow width in pixels
Returns
X coordinate where Person would be drawn at this time

X-coordinate where the Person is

◆ PersonTransform()

void PersonTransform ( unsigned &  bgcolor,
unsigned &  fgcolor,
unsigned  width,
unsigned  x,
unsigned  y,
unsigned  action_type 
)

Adds "person" animation into the given pixels

Parameters
bgcolorbackground color in that area
fgcolorforeground color in that area
widthwidth of screen in pixels
xx coordinate on screen of this pixel
yy coordinate on screen of this pixel
action_type1 = Top of screen; 2 = Bottommost row of top of screen 0 = anything else