thorvg/inc
Hermet Park 0399d84478 common paint: introduce opacity() method.
We introduced separate opacity interface to adjust alpha value by paint.
This opacity will affect to whole paint image if paint is a group of paints.

Also, this opacity is to multipy with fill/stroke alpha values.
This means if the opacity is valid, the paint might deal with a composition step,
which is very expensive due to additional rendering step.

One tip is, if you want to toggle on/off for a certian paint,
you can set opacity to 255 or 0.

@API Additions:

Result Paint::opacity(uint8_t o) noexcept;
uint8_t Paint::opacity() const noexcept;

@Examples: examples/Opacity

@Issues: 94
2020-10-26 19:23:54 +09:00
..
meson.build capi: support c interfaces 2020-07-15 16:00:09 +09:00
thorvg.h common paint: introduce opacity() method. 2020-10-26 19:23:54 +09:00
thorvg_capi.h bindings/capi: Added gradient getter 2020-09-23 15:09:08 +09:00