Hacker News new | ask | show | jobs
by seanstickle 2957 days ago
For those that like to mess around with the J programming language, here is what I believe is correct code to generate this parallax compression pattern.

  pack =: 3 : '+./ (r,y+1) $ (npc*y+1) {. (npc*y) }. p' "0
  pc =: 3 : 0
    r =: npc =: y
    c =: +/ 1+i.y
    p =: 1 p: (1+i.c*npc)
    pack i.r
  )
Image of output for numbers-per-cell = 75 here: https://twitter.com/seanstickle/status/997675789264015361