Skip to content

Comment on Glisp: A Lisp-Based Design Tool Bridging Graphic Design and Computational Arts

Comments

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".
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.