diff --git a/README.md b/README.md index 4b3fb715..54f15719 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Next you can draw shapes onto the canvas. ```cpp auto rect = tvg::Shape::gen(); //generate a round rectangle rect->appendRect(50, 50, 200, 200, 20, 20); //round geometry(x, y, w, h, rx, ry) -rect->fill(255, 255, 0, 255); //set round rectangle color (r, g, b, a) +rect->fill(100, 100, 0, 255); //set round rectangle color (r, g, b, a) canvas->push(move(rect)); //push round rectangle drawing command auto circle = tvg::Shape::gen(); //generate a circle @@ -71,14 +71,22 @@ circle->fill(move(fill)); //set circle color canvas->push(move(circle)); //push circle drawing command ``` +This code result look like this. +
+
+
+
+