Pinned Loading
-
A bouncing bubble, simulated using point masses connected by spring forces, enclosing a volume of ideal gas
Python 1
-
My personal website
JavaScript
-
1
(defn neighbors
2
([size yx] (neighbors [[0 0] [1 1] [-1 -1] [-1 1] [1 -1] [-1 0] [1 0] [0 -1] [0 1]] size yx))
3
([deltas size yx]
4
(filter (fn [new-yx]
5
(every? #(< -1 % size) new-yx))