Random Colours?

Craig,
  You could use something like:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Randomize;
  Form1.Canvas.Pixels[10,10] := RGB(Random(255),Random(255),Random(255));
end;

Hope this helps!
--

Rodney E Geraghty
GERA-Tech
Ottawa, Canada
gera...@ibm.net

F00DJUNKY <f00dju...@aol.com> wrote in article
<19970825185501.OAA02...@ladder02.news.aol.com>...

Quote
> How do I get random colours.

> ie.  pixels[10,10]:=random(?);

> all I seem to get is black and red, not matter how big the range.
> i.e. how do I map colours to values 0..255, and access them with a
> number?

> e-mail replies please!

> Thanks,
> Craig;)

> ps.  New to this game!