summaryrefslogtreecommitdiff
path: root/py/pykms
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-08-03 14:54:25 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-08-03 14:55:18 +0300
commited8343cb576fc04b9e24e413534d41e0c5d9f2d0 (patch)
treea3fa6a7f660cfdf31b682b9c775ef5baa7612d53 /py/pykms
parent2cfc1d86771a0835abdef86a6f6fcd914506da86 (diff)
add a simple draw_circle()
Diffstat (limited to 'py/pykms')
-rw-r--r--py/pykms/pykmsutil.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/pykms/pykmsutil.cpp b/py/pykms/pykmsutil.cpp
index 518d5ea..d5d7fde 100644
--- a/py/pykms/pykmsutil.cpp
+++ b/py/pykms/pykmsutil.cpp
@@ -57,6 +57,9 @@ void init_pykmstest(py::module &m)
m.def("draw_rect", [](Framebuffer& fb, uint32_t x, uint32_t y, uint32_t w, uint32_t h, RGB color) {
draw_rect(fb, x, y, w, h, color);
} );
+ m.def("draw_circle", [](Framebuffer& fb, int32_t xCenter, int32_t yCenter, int32_t radius, RGB color) {
+ draw_circle(fb, xCenter, yCenter, radius, color);
+ } );
m.def("draw_text", [](Framebuffer& fb, uint32_t x, uint32_t y, const string& str, RGB color) {
draw_text(fb, x, y, str, color); } );
}