mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
examples Opacity: Add close method
This commit is contained in:
parent
64d3897816
commit
55978d1bf4
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ void tvgDrawCmds(tvg::Canvas* canvas)
|
|||
shape4->cubicTo(cx + radius, cy + halfRadius, cx + halfRadius, cy + radius, cx, cy+ radius);
|
||||
shape4->cubicTo(cx - halfRadius, cy + radius, cx - radius, cy + halfRadius, cx - radius, cy);
|
||||
shape4->cubicTo(cx - radius, cy - halfRadius, cx - halfRadius, cy - radius, cx, cy - radius);
|
||||
shape4->close();
|
||||
shape4->fill(255, 0, 0, 255);
|
||||
shape4->stroke(10);
|
||||
shape4->stroke(0, 0, 255, 255);
|
||||
|
|
Loading…
Add table
Reference in a new issue