OK In progress...
This commit is contained in:
parent
fb190923ab
commit
cf0527be5f
|
@ -71,9 +71,9 @@ namespace CairoChart {
|
||||||
|
|
||||||
case Type.TRIANGLE:
|
case Type.TRIANGLE:
|
||||||
chart.ctx.move_to (x - size / 2, y - size / 2);
|
chart.ctx.move_to (x - size / 2, y - size / 2);
|
||||||
chart.ctx.line_to (x + size / 2, y - size / 2);
|
chart.ctx.rel_line_to (size, 0);
|
||||||
chart.ctx.line_to (x, y + size / 2);
|
chart.ctx.rel_line_to (-size / 2, size);
|
||||||
chart.ctx.line_to (x - size / 2, y - size / 2);
|
chart.ctx.rel_line_to (-size / 2, -size);
|
||||||
chart.ctx.fill();
|
chart.ctx.fill();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue