summaryrefslogtreecommitdiff
path: root/py/pykmstest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/pykmstest.cpp')
-rw-r--r--py/pykmstest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/pykmstest.cpp b/py/pykmstest.cpp
index 781a43a..407330d 100644
--- a/py/pykmstest.cpp
+++ b/py/pykmstest.cpp
@@ -14,6 +14,10 @@ void init_pykmstest(py::module &m)
.def(py::init<>())
.def(py::init<uint8_t, uint8_t, uint8_t&>())
.def(py::init<uint8_t, uint8_t, uint8_t, uint8_t&>())
+ .def_property_readonly("rgb888", &RGB::rgb888)
+ .def_property_readonly("argb8888", &RGB::argb8888)
+ .def_property_readonly("abgr8888", &RGB::abgr8888)
+ .def_property_readonly("rgb565", &RGB::rgb565)
;
// Use lambdas to handle IMappedFramebuffer