OK In progress...

This commit is contained in:
Kolan Sh 2018-01-22 08:57:36 +03:00
parent cf0527be5f
commit 9a03af4b85
1 changed files with 4 additions and 5 deletions

View File

@ -78,8 +78,7 @@ namespace CairoChart {
break;
case Type.PRICLE_SQUARE:
chart.ctx.rectangle (x - size / 2, y - size / 2,
size, size);
chart.ctx.rectangle (x - size / 2, y - size / 2, size, size);
chart.ctx.stroke();
break;
@ -90,9 +89,9 @@ namespace CairoChart {
case Type.PRICLE_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.stroke();
break;
}