cmdfx 0.1.0
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/canvas.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19// Utility Functions - Shapes
20
34void Canvas_hLine_anim(int x, int y, int width, char c, double time);
35
53void Canvas_hLine_anim_reverse(int x, int y, int width, char c, double time);
54
68void Canvas_vLine_anim(int x, int y, int height, char c, double time);
69
87void Canvas_vLine_anim_reverse(int x, int y, int height, char c, double time);
88
106void Canvas_rect_anim(int x, int y, int width, int height, char c, double time);
107
125void Canvas_fillRect_anim(int x, int y, int width, int height, char c, double time);
126
141void Canvas_line_anim(int x0, int y0, int x1, int y1, char c, double time);
142
161void Canvas_line_anim_reverse(int x0, int y0, int x1, int y1, char c, double time);
162
163// Utility Functions - Text
164
177void Canvas_drawText_anim(int x, int y, const char* text, double time);
178
195void Canvas_drawText_anim_reverse(int x, int y, const char* text, double time);
196
210void Canvas_drawAsciiText_anim(int x, int y, char character, const char* text, double time);
211
212#ifdef __cplusplus
213}
214#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_drawText_anim_reverse(int x, int y, const char *text, double time)
Draws text at the specified position over time, then reverses the animation.
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_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_drawText_anim(int x, int y, const char *text, double time)
Draws text 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.
Canvas API for drawing shapes and text on the terminal.