Results
|
Choice
|
Votes
|
|
Percent
|
0!
|
17
|
5.8%
|
|
1!
|
8
|
2.7%
|
|
0
|
191
|
65.6%
|
|
pi
|
3
|
1.0%
|
|
ln(i)
|
17
|
5.8%
|
|
1
|
8
|
2.7%
|
|
Huh?
|
47
|
16.2%
|
|
|
Pi is exactly 3!
|
Paul Houser
(Web Page)
|
I think the next survey should be, "Who DIDN'T use a calculator to figure out the answer to the last poll?"
|
Reply to this comment
|
16 May 2005, 21:13 GMT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re: Re(8): NO WAY!!
|
Chris Williams
|
I made an "all colours" image just now too, and I compressed it to a PNG. It's 122K and took 13.078 seconds real time or 9.270 seconds user time. I used compression level 9.
What are the dimensions of your image, and how are the colours arranged? That might make a difference in the effectiveness of compression.
Mine is 256 x 65536 pixels, and I just looped over each R, G, and B (in that order). B increments each pixel, G increments every time B rolls over, and R increments every time G rolls over.
In fact, since it's pretty short, here's the whole program (I could easily make it shorter):
#include <stdio.h>
int main()
{
int r, g, b;
printf("P6\n");
printf("256 65536\n");
printf("255\n");
for (r = 0; r < 256; ++r)
for (g = 0; g < 256; ++g)
for (b = 0; b < 256; ++b)
printf("%c%c%c", (char)r, (char)g, (char)b);
return 0;
}
|
Reply to this comment
|
21 May 2005, 03:42 GMT
|
|
1 2 3 4 5 6 7
You can change the number of comments per page in Account Preferences.
|