From c15f0b9b50a624028c68834697be277d7eab07c1 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 16 May 2013 17:27:37 +0100 Subject: agg2d: Adds implementation for DoFillTriangle() Also updated aggcanvas demo to show Canvas.FillTriangle() working. --- examples/corelib/aggcanvas/agg_canvas_test.lpr | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/corelib/aggcanvas/agg_canvas_test.lpr b/examples/corelib/aggcanvas/agg_canvas_test.lpr index 63ba1d53..90dab7c8 100644 --- a/examples/corelib/aggcanvas/agg_canvas_test.lpr +++ b/examples/corelib/aggcanvas/agg_canvas_test.lpr @@ -202,6 +202,10 @@ begin Canvas.SetLineStyle(1, lsSolid); Canvas.FillRectangle(r); + // Draw filled triangle + Canvas.Color := clOrange; + Canvas.FillTriangle(200, 150, 175, 175, 275, 175); + // Testing line drawing ac.NoFill; Canvas.SetColor(clBlue); -- cgit v1.2.3-70-g09d2