Hacker News new | ask | show | jobs
by iLemming 1710 days ago
This is beautiful. I really don't understand when programmers when presented with laconic elegance like this:

    (def w 36)
    (def s (/ w 2))

    (defn slash [i p]
      (path/transform
       (mat2d/* (translate p)
       (scale-x (compare (rnd i) .5)))
       (line [(- s) (- s)] [s s])))

    (background "snow")

    (style (stroke "salmon" 10)
      (for [y (column -5 5 w)
            x (column -5 5 w)
            :index i]
       (slash i [x y])))
Very often don't even want to appreciate the beauty and only see "annoying, pesky parentheses".