examples Opacity: Add close method

This commit is contained in:
JunsuChoi 2020-12-14 16:56:18 +09:00 committed by Hermet Park
parent 64d3897816
commit 55978d1bf4

View file

@ -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);