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