Skip to content

Commit

Permalink
Add rgb_color methods
Browse files Browse the repository at this point in the history
  • Loading branch information
coolcoder613eb committed Oct 20, 2024
1 parent 118f940 commit 9e3315c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/interface/GraphicsDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ py::class_<rgb_color>(m, "rgb_color")
.def(py::init<>(), "")
.def("set_to", &rgb_color::set_to, "", py::arg("r"), py::arg("g"), py::arg("b"), py::arg("a")=255)
.def("Brightness", &rgb_color::Brightness, "")
.def("IsDark", &rgb_color::IsDark, "")
.def("IsLight", &rgb_color::IsLight, "")
.def("__eq__", &rgb_color::operator==, "", py::arg("other"))
.def("__ne__", &rgb_color::operator!=, "", py::arg("other"))
.def("operator=", &rgb_color::operator=, "", py::arg("other"))
Expand Down

0 comments on commit 9e3315c

Please sign in to comment.