I tried to paint a canvas grey and then fill each pixel with another
color of pixel. But failed. How does one do this? I think this great
material for the HOWTO section.
{
r = new TCanvas("name", "title", 100, 100) ;
r.SetFillColor(14);
TPolyMarker * pm2d = new TPolyMarker(100*100);
int count = 0;
for (int i = 0; i < 100; ++i) {
for (int j = 0; j < 100; ++j) {
printf ("%d,%d \n", i,j);
pm2d->SetPoint(count++,j,i);
pm2d->Draw();
}
}
r.Update();
}
--
o============o Sending unsolicited commercial e-mail (UCE) to this address
Legal Notice is indication of your consent to pay me $120/hour for 1 hour
o============o minimum for professional proofreading & technical assessment.
Terrence Brannon * brannon@quake.usc.edu * http://quake.usc.edu/~brannon
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET