Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 24 Mar 1994.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Stereogram

Stereogram

alt.ascii-art · 1 message · 24 Mar 1994
Jervy <mam...@irix.bris.ac.uk> ASCII art 24 Mar 1994 14:15 · raw headers · report
hmmmmm. I'm having a little trouble seeing the last few stereograms posted
here......I reckon it's just a load of rubbish posted to waste time :) .
Here's some attempted hot air balloons from my stereogram program.... 

               X               X               X               X
w\$V2@R*.Rf<0@QEw\$V2@R*.Rf<0@QEw\$V2@R*.Rf<0@QEw\$V2@R*.Rf<0@QEw\$V2@R*.Rf<0@
Gr41N^j3jWTB:1X`Gr41N^j3jWTB:1X`Gr41N^j3jWTB:1Xr41N^k^j3jWTB:1Xr41N^^j3FjWTB:1X
Zc?0F72"Z/=`xt&AZc?0F72"Z/=`xt&AZc?0F72"Z/xt&AZc?0F72"Z/xttt&AZc?F72"Z/xtt/t&AZ
PDCr\.is9*7,7SAcPDCr\.is9*7,7SAcPDCr\.i*7,7SAcPDCr\.i*7,7SAcPNPDr\.i*7,7SAc-PNP
Z.$vJB<ot#q2$:ZSZ.$vJB<ot#q2$:ZSZ.$vJot#q2$:ZSZ.$vJot#q2$:ZSZ.O.$Jot#q2$:Z2SZ.O
d.mE9N;G'*,Lo=Vbd.mE9N;G'*,Lo=Vbd.mE;G'*,Lo=Vbd.mE;G'*,Lo=Vbd.mwmEG'*,Lo=+Vbd.m
Ea_rs40ZqL%@t[1>Ea_rs40ZqL%@t[1>Ea_r0ZqL%@t[1>Ea_r0ZqL%@t[1>Ea_l_r0qL%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Q I got a long time ago. If anyone wants it - well it's here (in 'c')

................................................

#define DEPTH0  16
#define COLS    79

#include <stdio.h>

main()
   {
   long now;
   int col;
   char m[COLS+1],s[COLS+1];
   int i,e,c;

   /* seed random number generator */
   time (&now);
   srand (now);

   /* print fusion X's */
   for (col = 0; COLS - col >= DEPTH0; col += DEPTH0)
      {
      for (i = 0; i < DEPTH0-1; ++i)
         putchar (' ');
      putchar ('X');
      }
   putchar ('\n');

   /* process input image */
   while (memset(m,'\0',COLS+1),fgets (m, COLS+1, stdin))
      {
      e = 0;
      s[COLS] = 0;
      for(i=0; i<COLS; )
         {
         e = 0;
         while (i >= DEPTH0 && i < COLS && 
            (c = m[i - DEPTH0]) >= '0' && c <= '9')
            {
            e = 1;
            s[i] = s[i-DEPTH0+c-'0'];
            ++i;
            }
         s[i++] = (e || i < DEPTH0) ? randasc() : s[i-DEPTH0];
         }
      puts (s);
      }
}

randasc()
{
   /* large set of random characters */
   return ('!'+rand()%92);

   /* lowercase random letters */
   /* return ('a'+rand()%26); */
}


....................end of program......................

compile using 'cc'. ...producing executable a.out, say. the input files
are straight forward. The one I used for the balloons above is.....

                                                                  
                               22222                111         
                          2222222222222222       111111111    
                       2222222222222222222222   11111111111       
                     2222222222222222222222222   111111111          
                    222222222222222222222222222   1111111        
                    222222222222222222222222222    11111     
                    222222222222222222222222222     1 1                  
                     2222222222222222222222222      111
                      22222222222222222222222
                        2222222222222222222 
                          222222222222222 
                            22222222222                
                             2       2                  
                              2222222                    
                              2222222                   
                                                                 
.........
just type a.out < {input filename}  to run. As you can see different
numbers correspond to different `levels' in the stereogram produced. I
haven't played with it much yet - hence the poor attempt above. Perhaps
someone else can come up with something better. 

mark.
--
          .-^x^-.       __________________________________________
         /       \    /`                                          `\ 
        |         |  | mmmmmmmmmmmmmmmmmm.........stereogram        | 
        |         |   \.__________________________________________./ 
        |     __ _,       /
       /\/\  (_o)o)     /
        C       __)   /
        |   /~~~  ~\  
        /   \   ==='
      /`-_   `----'   

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 1994 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post