-
- Downloads
refactoring of gfx.Color to accomodate HSV better
The Color class now keeps track of RGB and HSV in preparation of better HSV use, e.g. HSV based gradients. The interface has been extended, and parts of the old interface have been deprecated (by means of in-source comments, not yet as messages when using it); this applies to both C++ and Python. Instead of gfx.Color() use the factory functions gfx.RGB(r,g,b), gfx.RGBA(r,g,b,a), gfx.HSV(h,s,v) and gfx.HSVA(h,s,v,a). See also gfx/color.hh for in-source doc
Showing
- modules/gfx/pymod/__init__.py 24 additions, 25 deletionsmodules/gfx/pymod/__init__.py
- modules/gfx/pymod/export_color.cc 104 additions, 48 deletionsmodules/gfx/pymod/export_color.cc
- modules/gfx/src/color.cc 328 additions, 122 deletionsmodules/gfx/src/color.cc
- modules/gfx/src/color.hh 138 additions, 38 deletionsmodules/gfx/src/color.hh
- modules/gfx/src/impl/cartoon_renderer.cc 5 additions, 4 deletionsmodules/gfx/src/impl/cartoon_renderer.cc
- modules/gfx/src/impl/cpk_renderer.cc 1 addition, 1 deletionmodules/gfx/src/impl/cpk_renderer.cc
- modules/gfx/src/impl/entity_detail.cc 1 addition, 1 deletionmodules/gfx/src/impl/entity_detail.cc
- modules/gfx/src/impl/entity_detail.hh 39 additions, 4 deletionsmodules/gfx/src/impl/entity_detail.hh
- modules/gfx/src/texture.cc 3 additions, 2 deletionsmodules/gfx/src/texture.cc
- modules/gfx/src/texture.hh 5 additions, 8 deletionsmodules/gfx/src/texture.hh
- modules/gfx/tests/CMakeLists.txt 1 addition, 0 deletionsmodules/gfx/tests/CMakeLists.txt
- modules/gfx/tests/test_color.cc 184 additions, 0 deletionsmodules/gfx/tests/test_color.cc
Loading
Please register or sign in to comment