mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
![]() Scene effects are typically applied to modify the final appearance of a rendered scene, such as adding a blur effect. Each effect would have a different number of parameters to control its visual properties. The Scene::push() interface uses variadic arguments to accommodate various cases. Users should refer to the SceneEffect API documentation and pass the parameters exactly as required for the specific effect type. For instance, GaussianBlur expects 3 parameters which are: - sigma(float)[greater than 0] - direction(int)[both: 0 / horizontal: 1 / vertical: 2] - border(int)[extend: 0 / wrap: 1] - quality(int)[0 ~ 100] and, scene->push(SceneEffect::GaussianBlur, 5.0f, 0, 0, 100); New Experimental APIs: - SceneEffect::ClearAll - SceneEffect::GaussianBlur - Result Scene::push(SceneEffect effect, ...); Example: - examples/SceneEffect issue: https://github.com/thorvg/thorvg/issues/374 |
||
---|---|---|
.. | ||
meson.build | ||
thorvg.h |