Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

24-bit

Name: Anonymous 2007-02-24 12:23 ID:k+XSE8/i

I want to see a single image with all the 24bit (16.7m) colours in it. I'm asking in /prog/ because I'm not sure such an image exists on the Internet and probably the only hope is for someone to write a program to generate it. Thanks.

Name: Anonymous 2007-02-26 23:07 ID:pWgJEfxB

some PHP? Warning: if your computer is not epic then your fail will be

$r = $b = $g = 0;
for( $r = 0; $r < 255; $r++ )
{
 for( $b = 0; $b < 255; $b++ )
 {
  for( $g = 0; $g < 255; $g++ )
  {
   echo "&lt;div style='background-color:rgb({$r},{$g},{$b});' class='color'&gt;";
  }
 }
}

add styles for the win (but then copy paste HTML to file and save - generating 16 million divs isn't easy on your server)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List