cmdfx 0.3.2
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
canvas.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "cmdfx/core/canvas.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19// Utility Functions - Shapes
20
35void Canvas_hLine_anim(int x, int y, int width, char c, double time);
36
56void Canvas_hLine_anim_reverse(int x, int y, int width, char c, double time);
57
72void Canvas_vLine_anim(int x, int y, int height, char c, double time);
73
93void Canvas_vLine_anim_reverse(int x, int y, int height, char c, double time);
94
113void Canvas_rect_anim(int x, int y, int width, int height, char c, double time);
114
134 int x, int y, int width, int height, char c, double time
135);
136
152void Canvas_line_anim(int x0, int y0, int x1, int y1, char c, double time);
153
175 int x0, int y0, int x1, int y1, char c, double time
176);
177
178// Utility Functions - Text
179
192void Canvas_drawText_anim(int x, int y, char* text, double time);
193
211void Canvas_drawText_anim_reverse(int x, int y, char* text, double time);
212
227 int x, int y, char character, const char* text, double time
228);
229
230#ifdef __cplusplus
231}
232#endif
void Canvas_vLine_anim(int x, int y, int height, char c, double time)
Draws a vertical line at the specified position over time.
void Canvas_vLine_anim_reverse(int x, int y, int height, char c, double time)
Draws a vertical line at the specified position over time, then reverses the animation.
void Canvas_line_anim_reverse(int x0, int y0, int x1, int y1, char c, double time)
Draws a line at the specified position over time, then reverses the animation.
void Canvas_fillRect_anim(int x, int y, int width, int height, char c, double time)
Fills a rectangle at the specified position over time.
void Canvas_rect_anim(int x, int y, int width, int height, char c, double time)
Draws a hollow rectangle at the specified position over time.
void Canvas_hLine_anim_reverse(int x, int y, int width, char c, double time)
Draws a horizontal line at the specified position over time, then reverses the animation.
void Canvas_drawText_anim_reverse(int x, int y, char *text, double time)
Draws text at the specified position over time, then reverses the animation.
void Canvas_line_anim(int x0, int y0, int x1, int y1, char c, double time)
Draws a line at the specified position over time.
void Canvas_drawAsciiText_anim(int x, int y, char character, const char *text, double time)
Draws an ASCII character at the specified position over time.
void Canvas_hLine_anim(int x, int y, int width, char c, double time)
Draws a horizontal line at the specified position over time.
void Canvas_drawText_anim(int x, int y, char *text, double time)
Draws text at the specified position over time.
Canvas API for drawing shapes and text on the terminal.