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