thorvg/src/examples
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
..
svgs examples svgs: replace logo design resource. 2020-10-26 16:52:52 +09:00
Arc.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Async.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Blending.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Boundary.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Capi.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
ClipPath.cpp common: code refactoring 2020-10-07 16:25:09 +09:00
Common.h examples: removed test prefix 2020-10-07 14:04:08 +09:00
CustomTransform.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
DirectUpdate.cpp examples: update DirectUpdate 2020-10-13 13:34:10 +09:00
Duplicate.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
FillRule.cpp examples fillrule: revise code. 2020-10-26 17:13:02 +09:00
GradientTransform.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
LinearGradient.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
meson.build common paint: introduce opacity() method. 2020-10-26 19:23:54 +09:00
MultiCanvas.cpp examples: add missing files. 2020-10-07 14:28:11 +09:00
MultiShapes.cpp examples: add missing files. 2020-10-07 14:28:11 +09:00
Opacity.cpp common paint: introduce opacity() method. 2020-10-26 19:23:54 +09:00
Path.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
PathCopy.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
RadialGradient.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Scene.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
SceneTransform.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Shape.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Stacking.cpp examples: add stacking example 2020-10-08 15:57:01 +09:00
Stress.cpp sw_engine: fix missing shape update issue. 2020-10-13 17:07:54 +09:00
Stroke.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
StrokeLine.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Svg.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Svg2.cpp examples svgs: replace logo design resource. 2020-10-26 16:52:52 +09:00
Transform.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00
Update.cpp examples: removed test prefix 2020-10-07 14:04:08 +09:00