       (zcolor/darken-rgb fg
                          (min 1 (/ 2 (max 1 distance)))))
     fg))
-
-(defn night-tint [opts x y fg]
-  (if-let [day? (get opts :night-tint)]
-    (zcolor/night-tint fg day?)
-    fg))
-
-(defn no-op-filter [_ _ _ bg] bg)
 
 
 ;;; Effects

            effects-cmd-chan (chan 1000)
            wrapped-term    (WrappedAnimatedTerminal. terminal (atom []) cmd-chan)
            effects-term    (WrappedAnimatedTerminal. terminal (atom []) cmd-chan)
            effects         (atom [((make-rain-effect :fx 16 16) effects-term)])]
        #_(log/info "overriding terminal")
        #_(log/info "effects" @effects "filters" @filters)
        ;; start effects

  (:require 
            [clojure.core.async :refer :all :as async :exclude [map into]]
            [zaffre.color :as zcolor]
            [zaffre.terminal :as zat]
            [zaffre.util :as zutil]
            [taoensso.timbre :as log]
            [overtone.at-at :as atat]))


#?(:clj
(set! *warn-on-reflection* true))

(def ^:dynamic *rain-rate* 0.96)


