Replies: 1 comment 5 replies
-
I assume it wouldn't be that complicated to create some custom function for this. int sx,sy;
int lx, ly;
void moveTo(x, y) {
sx =x, sy= y;
lx =x, ly= y;
}
void lineTo(x, y) {
drawLine(lx,ly,x,y); lx =x, ly= y;
}
void closeLine(void) {
drawLine(lx,ly,sx,sy);
} |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any chance of implementing a drawPoly type function for drawing graphs without a hundred drawLine calls? Usually this would include a bool closed flag to indicate a closed polygon vs a line.
Beta Was this translation helpful? Give feedback.
All reactions