Form Berwarna

procedure TForm1.FormPaint(Sender: TObject);
var
Row,Ht : word;
begin
Ht :=(clientheight+255) div 256 ;
for row :=0 to 255 do
with canvas do
begin
brush.Color:=rgb(row,0,0);
FillRect(Rect(0,row*ht,ClientWidth,(row+1)*ht));
end;
end;

end.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: