-
- Downloads
fixes and modifications to gfx.Gradient; pooled gfx py tests into one file
In Python, gfx.Gradient can now be initialized with a dictionary; for each key: value pair, the key is a float between 0 and 1, and the value is either a float triplet or a gfx.Color object. In C++, Stop and StopList were moved into Gradient to avoid namespace pollution. In Python, they were renamed to GradientStop and GradientStopList. As a consequence, gui/pymod/scene/gradient_editor_widget.py has had a rename of its GradientStop to MyGradientStop.
Showing
- modules/gfx/pymod/CMakeLists.txt 1 addition, 0 deletionsmodules/gfx/pymod/CMakeLists.txt
- modules/gfx/pymod/export_gradient.cc 86 additions, 0 deletionsmodules/gfx/pymod/export_gradient.cc
- modules/gfx/pymod/wrap_gfx.cc 5 additions, 23 deletionsmodules/gfx/pymod/wrap_gfx.cc
- modules/gfx/src/gradient.cc 7 additions, 4 deletionsmodules/gfx/src/gradient.cc
- modules/gfx/src/gradient.hh 30 additions, 28 deletionsmodules/gfx/src/gradient.hh
- modules/gfx/tests/CMakeLists.txt 1 addition, 2 deletionsmodules/gfx/tests/CMakeLists.txt
- modules/gfx/tests/test_gfx.py 63 additions, 0 deletionsmodules/gfx/tests/test_gfx.py
- modules/gfx/tests/test_primlist.py 0 additions, 29 deletionsmodules/gfx/tests/test_primlist.py
- modules/gui/pymod/scene/gradient_editor_widget.py 2 additions, 2 deletionsmodules/gui/pymod/scene/gradient_editor_widget.py
Loading
Please register or sign in to comment