examples capi: removed printf()

there is no point to print information.
This commit is contained in:
Hermet Park 2020-11-09 14:43:15 +09:00
parent 9872cf066d
commit 3fabd604bf

View file

@ -125,34 +125,19 @@ void testCapi()
uint32_t ptsCnt;
tvg_shape_get_path_commands(shape, &cmds, &cmdCnt);
printf("---- First Shape Commands(%u) ----\n", cmdCnt);
for(uint32_t i = 0; i < cmdCnt; ++i) {
printf("%d\n", cmds[i]);
}
tvg_shape_get_path_coords(shape, &pts, &ptsCnt);
printf("---- First Shape Points(%u) ----\n", ptsCnt);
for(uint32_t i = 0; i < ptsCnt; ++i) {
printf("(%.2lf, %.2lf)\n", pts[i].x, pts[i].y);
}
float x1, y1, x2, y2, radius;
tvg_linear_gradient_get(grad, &x1, &y1, &x2, &y2);
printf("Gradient linear get: %f/%f/%f/%f\n", x1, y1, x2, y2);
tvg_radial_gradient_get(grad6, &x1, &y1, &radius);
printf("Gradient radial get: %f/%f, %f\n", x1, y1, radius);
uint32_t cnt;
const Tvg_Color_Stop* color_stops_get;
tvg_gradient_get_color_stops(grad5, &color_stops_get, &cnt);
printf("Gradient stops get:\n");
for(uint32_t i = 0; i < cnt; i++) {
printf("\t[%d] offset: %f, rgb: %d/%d/%d, alpha: %d\n", i, color_stops_get[i].offset, color_stops_get[i].r, color_stops_get[i].g, color_stops_get[i].b, color_stops_get[i].a);
}
Tvg_Stroke_Fill spread;
tvg_gradient_get_spread(grad, &spread);
printf("Gradient spread: %d\n", (int)spread);
//Origin paint for duplicated
Tvg_Paint* org = tvg_shape_new();