OK In progress...
This commit is contained in:
parent
cf0527be5f
commit
9a03af4b85
|
@ -78,8 +78,7 @@ namespace CairoChart {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Type.PRICLE_SQUARE:
|
case Type.PRICLE_SQUARE:
|
||||||
chart.ctx.rectangle (x - size / 2, y - size / 2,
|
chart.ctx.rectangle (x - size / 2, y - size / 2, size, size);
|
||||||
size, size);
|
|
||||||
chart.ctx.stroke();
|
chart.ctx.stroke();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -90,9 +89,9 @@ namespace CairoChart {
|
||||||
|
|
||||||
case Type.PRICLE_TRIANGLE:
|
case Type.PRICLE_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.stroke();
|
chart.ctx.stroke();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue