|
|
tdrawille.h - ploot - simple plotting tools |
|
|
 |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
|
--- |
|
|
|
tdrawille.h (753B) |
|
|
|
--- |
|
|
|
1 #ifndef DRAWILLE_H |
|
|
|
2 #define DRAWILLE_H |
|
|
|
3 |
|
|
|
4 #include <stddef.h> |
|
|
|
5 #include <stdint.h> |
|
|
|
6 #include <stdio.h> |
|
|
|
7 |
|
|
|
8 #include "csv.h" |
|
|
|
9 #include "font.h" |
|
|
|
10 |
|
|
|
11 /* |
|
|
|
12 * Canvas to draw on with braille characters. |
|
|
|
13 */ |
|
|
|
14 struct drawille { |
|
|
|
15 int col, row; /* number of dots in total */ |
|
|
|
16 uint8_t buf[]; /* buffer of size (col * row) */ |
|
|
|
17 }; |
|
|
|
18 |
|
|
|
19 /**/ |
|
|
|
20 size_t drawille_put_row (FILE *, struct drawille *, int); |
|
|
|
21 void drawille_dot (struct drawille *, int, int); |
|
|
|
22 struct drawille *drawille_new (int, int); |
|
|
|
23 void drawille_line (struct drawille *, int, int, int, int); |
|
|
|
24 void drawille_histogram_dot (struct drawille *, int, int, int); |
|
|
|
25 void drawille_histogram_line (struct drawille *, int, int, int, int, int); |
|
|
|
26 char * drawille_text (struct drawille *, int, int, struct font *, char *); |
|
|
|
27 |
|
|
|
28 #endif |
|