08 June 2007

MEMBUAT PROGRAM ANIMASI

Semoga berhasil... Jika ada masalah kirim email ke : putu_dalungcity@yahoo.co.id

Nama : Abryan Tata Pangarsa
Web : abryantp.blogspot.com


Sourcecode [ Membuat program animasi ] :

unit Abryan;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;

type
TForm1 = class(TForm)
procedure FormPaint(Sender: TObject);
procedure FormResize(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormPaint(Sender: TObject);
Var i : integer;
begin
For i := 1 to 5000 Do
Begin
Canvas.Pen.Color := clBlue;
Canvas.Pen.Style := psDashDot;
Canvas.MoveTo(ClientWidth div 2, ClientHeight div 2);
Canvas.LineTo(random(ClientWidth),random(ClientHeight));
end;
end;

procedure TForm1.FormResize(Sender: TObject);
begin
Invalidate;
end;

end.

COMMENTS :

Don't Spam Here

0 komentar to “MEMBUAT PROGRAM ANIMASI”

 

Copyright © 2009 Fresh Themes Gallery | NdyTeeN. All Rights Reserved. Powered by Blogger and Distributed by Blogtemplate4u .