Produce an image based on an elementary cellular automata ruleset
Python 2, 178 167 ... 128 bytes

-13 bytes thanks to @Surculose Sputum!

-2 bytes thanks to @dingledooper!

thanks @Surculose Sputum again for saving some bytes and fixing the boundary bug!!!!



n=input()
print'P1 31 16'
c='%061d'%10**30
exec"print' '.join(c[15:46]);c='0'+''.join(n[int(c[u:u+3],2)]for u in range(60));"*16


Try it online!

Output a 31x16 pbm image in stdout. You might need a magnifying glass to see those tinnie images though.


  '01111000' =>  (30 in reverse)
  '01011000' =>  (26 in reverse)