Computer Generated Space Scenes

Methodology

As you may have noted (by viewing a few pages), there are basically two different types of GIFs presented. They are:

        Smaller - Black & White, and
        Larger - Color.



The process:

        Height - a random number, between 0 and 1023.
                    Note: Most of the Big ones were tossed.

        Width - Height adjusted in a random direction by 1 (or 0).
                    Note: Random numer between 0 and 3,
                          a bit for adjusting or not, and
                          a bit for direction.
                    Note: if Width > 255, then Width = 255!

        If either Width or Height is less than 75, then Toss it!

        If both Width and Height are 127 or greater then

                It will be Color!

            otherwise

                It will be Black and White!


The Color Process:

        A 256 color Global Color Table is created with:

                8 Basic Colors (the three color guns alternated),
                247 additional Blacks, &
                1 additional White.

        The rectangle (Width by Height) is filled using:

                rand() & 255


The Black & White Process:

        A 16 color Global Color Table is created with:

                16 Blacks.

        The rectangle (Width by Height) is filled using:

                rand() & 15

        The least used "color" from the above "fill" is changed to:

                White.


Back to Intro