C (97/254)

From:Colin Wenzel
Date:01 Apr 00 at 04:14:19
Subject:Re: ObtainPen for my colors

On 01-Apr-00, Allan Odgaard wrote:
> On 31-Mar-00, Joris Kempen wrote:
>> Now i still need a way to get all my shadings from
>> black..gray..white Any suggestions for that?
>
> Try this:
>
> const int cols = 16;
>
> for(int i = 0; i < cols; i++)
> col = 255 * i/(cols-1) * 0x01010101;
>

I think the formatter just shot you in the foot.............
Try it again with a space between characters in the nasty bits.

-------------------------------------
Colin Wenzel. Australia.

EMAIL: mailto:colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.5, EGS Spectrum.
---------------------------------------

------------------------------------------------------------------------
LOW RATE, NO WAIT!
Get a NextCard Visa, in 30 seconds! Get rates
as low as 2.9% Intro or 9.9% Fixed APR and no hidden fees.
Learn more at:
http://click.egroups.com/1/937/1/_/451227/_/954573217/
------------------------------------------------------------------------