From f43166a96e49ea89b88263f7c6e6b306529aeb3c Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 16 Sep 2020 20:31:49 +0900 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a9ead0ef..063162da 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Or you can draw pathes with dash stroking. ```cpp auto path = tvg::Shape::gen(); //generate a path -path->moveTo(199, 34); //set sequential path coordinates +path->moveTo(199, 34); //set sequential path coordinates path->lineTo(253, 143); path->lineTo(374, 160); path->lineTo(287, 244); @@ -96,17 +96,17 @@ path->lineTo(26, 161); path->lineTo(146, 143); path->close(); -path->fill(150, 150, 255, 255); //path color +path->fill(150, 150, 255, 255); //path color -path->stroke(3); //stroke width -path->stroke(0, 0, 255, 255); //stroke color -path->stroke(tvg::StrokeJoin::Round); //stroke join style -path->stroke(tvg::StrokeCap::Round); //stroke cap style +path->stroke(3); //stroke width +path->stroke(0, 0, 255, 255); //stroke color +path->stroke(tvg::StrokeJoin::Round); //stroke join style +path->stroke(tvg::StrokeCap::Round); //stroke cap style float pattern[2] = {10, 10}; -path->stroke(pattern, 2); //stroke dash pattern (line, gap) +path->stroke(pattern, 2); //stroke dash pattern (line, gap) -canvas->push(move(path)); //push path drawing command +canvas->push(move(path)); //push path drawing command ```