-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw.h
29 lines (24 loc) · 827 Bytes
/
draw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include <stdint.h>
class RGB16DisplayAdaptor;
void draw_circle(
class RGB16DisplayAdaptor* disp,
uint16_t cx, uint16_t cy, // center
uint16_t ra, // radius
uint16_t b, // border thickness, 0 means completely filled
uint16_t color // color
);
void draw_rect(
class RGB16DisplayAdaptor* disp,
uint16_t x0, uint16_t y0, // top left corner
uint16_t x1, uint16_t y1, // bottom right corner
uint16_t b, // border thickness, 0 means completely filled
uint16_t color // color
);
void draw_rect_rounded(
class RGB16DisplayAdaptor* disp,
uint16_t x0, uint16_t y0, // top left corner
uint16_t x1, uint16_t y1, // bottom right corner
uint16_t ra, // the corner radius
uint16_t color // fill color
);