source: trunk/River.pas

Last change on this file was 143, checked in by chronos, 11 months ago

Removed U prefix from all units.

File size: 436 bytes
Line 
1unit River;
2
3interface
4
5uses
6 Classes, SysUtils, Graphics, Generics.Collections;
7
8type
9 { TRiver }
10
11 TRiver = class
12 Points: array of TPoint;
13 procedure Paint(Canvas: TCanvas);
14 end;
15
16 { TRivers }
17
18 TRivers = class(TObjectList<TRiver>)
19 end;
20
21
22implementation
23
24{ TRiver }
25
26procedure TRiver.Paint(Canvas: TCanvas);
27begin
28 Canvas.Brush.Color := $ffffe0;
29 Canvas.Brush.Style := bsSolid;
30 Canvas.Polygon(Points);
31end;
32
33end.
34
Note: See TracBrowser for help on using the repository browser.