OK In progress...

This commit is contained in:
Kolan Sh 2018-01-22 08:55:59 +03:00
parent fb190923ab
commit cf0527be5f
1 changed files with 3 additions and 3 deletions

View File

@ -71,9 +71,9 @@ namespace CairoChart {
case Type.TRIANGLE:
chart.ctx.move_to (x - size / 2, y - size / 2);
chart.ctx.line_to (x + size / 2, y - size / 2);
chart.ctx.line_to (x, y + size / 2);
chart.ctx.line_to (x - size / 2, y - size / 2);
chart.ctx.rel_line_to (size, 0);
chart.ctx.rel_line_to (-size / 2, size);
chart.ctx.rel_line_to (-size / 2, -size);
chart.ctx.fill();
break;