8 static uint32_t buffer[WIDTH * HEIGHT];
10 int main(int argc, char **argv)
12 //Initialize TizenVG Engine
16 auto canvas = tvg::SwCanvas::gen(buffer, WIDTH, HEIGHT);
19 auto shape1 = tvg::ShapeNode::gen();
20 shape1->rect(0, 0, 400, 400, 0.1); //x, y, w, h, cornerRadius
21 shape1->fill(0, 255, 0, 255);
24 shape1->strokeColor(0, 0, 0, 255); //r, g, b, a
25 shape1->strokeWidth(1); //1px
26 shape1->strokeJoin(tvg::StrokeJoin::Miter);
27 shape1->strokeLineCap(tvg::StrokeLineCap::Butt);
29 uint32_t dash[] = {3, 1, 5, 1}; //dash pattern
30 shape1->strokeDash(dash, 4);
32 //Draw the Shape onto the Canvas
33 canvas->push(move(shape1));
37 //Terminate TizenVG Engine