38 #define MEMSPACE_FONT MEMSPACE 46 #define BEZIER_STEPS 10 66 if( c >= 32 && c <= 127)
78 printf(
"DrawSVG: invalid character\n");
83 printf(
"DrawSVG:(%d,%d) scale:%e)\n", x,y,(
double)scale);
93 Move.
X = x + (scale * v[ind + 1]);
94 Move.
Y = y + (scale * v[ind + 2]);
109 T.
X = x + (scale * v[ind + 1]);
110 T.
Y = y + (scale * v[ind + 2]);
112 if(T.
X != Cur.
X || T.
Y != Cur.
Y)
130 Ctl.
X = x + (scale * v[ind + 1]);
131 Ctl.
Y = y + (scale * v[ind + 2]);
132 T.
X = x + (scale * v[ind + 3]);
133 T.
Y = y + (scale * v[ind + 4]);
135 if(T.
X != Cur.
X || T.
Y != Cur.
Y)
138 count =
tft_Bezier2(win, Cur, Ctl, T, BEZIER_STEPS, color);
140 if(T.
X != Cur.
X || T.
Y != Cur.
Y)
159 if(Cur.
X != Move.
X || Cur.
Y != Move.
Y)
179 printf(
"bad type:%c @ index:%d\n", (
int)t, (
int)ind);
210 #endif //ifdef VFONTS
Master include file for project Includes all project includes and defines here.
void tft_fillRectWH(window *win, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Partial window Fill with color We clip the window to the current view.
Cordic_T X
Main Cordic routine - used for basic trig and vector rotations We use fixed point numbers...
void drawSVG(window *win, int16_t x, int16_t y, int16_t c, float scale, uint16_t color, int16_t fill)
int tft_Bezier2(window *win, p2_int16_t S, p2_int16_t C, p2_int16_t T, int steps, uint16_t color)
Draw lines between points along Quadratic Bézier curve Quadratic Bézier with respect to t...
2D display point - display coordinates are int16
void tft_drawLine(window *win, int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Draw line From my blit test code testit.c 1984 - 1985 Mike Gore.
int tft_FillPolyLine(window *win, int16_t x, int16_t y, int w, uint16_t color)
MEMSPACE int printf(const char *format,...)
ili9341 driver inspired by Adafruit ili9341 code All code in this file has been rewritten by Mike Gor...