Sunday, May 11, 2008

8x8


The following is a two color 8x8 pixel image.
each pixel can be represented as a binary number thus:

10000000
01000000
00100000
00010000
00001000
00000100
00000010
00000001

or as a single number like this:
10000000 01000000 00100000 00010000 00001000 00000100 00000010 00000001

to iterate through all the combinations would simple require to increment the binary number.
That's 64 positions so the number of combinations is 2^64=1.844674407371e+19.

to animate at 60 frames per second = 3.074457345618e+17 sec = 5,124,095,576,030,430 min = 85,401,592,933,840.5 hours= 3,558,399,705,576.68 days = 9,749,042,775.64 years

to display all combinations in one image = 2^32 x 2^32
4,294,967,296 pixels x 4,294,967,296 pixels
@ 72DPI = 59,652,323.55 inches = 4,971,026.96 ft = 941.48 miles

No comments: