diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2013-05-16 17:27:37 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2013-05-16 17:27:37 +0100 |
commit | c15f0b9b50a624028c68834697be277d7eab07c1 (patch) | |
tree | 1fbc691e35a7b25a3b32dc2d5f5d72e7a5380c43 /examples | |
parent | 8df2484908d1350fefd4ee871e975bc6da57b096 (diff) | |
download | fpGUI-c15f0b9b50a624028c68834697be277d7eab07c1.tar.xz |
agg2d: Adds implementation for DoFillTriangle()
Also updated aggcanvas demo to show Canvas.FillTriangle() working.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/corelib/aggcanvas/agg_canvas_test.lpr | 4 |
1 files changed, 4 insertions, 0 deletions
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); |