     [156 175 131 255]
     [209 213 201 255]
     [209 213 201 255]
+    [209 213 201 255]]
+   [[ 57  29  29   0]
+    [147 103  59 255]
+    [149  65  35 255]
+    [177 157 105 255]
+    [209 213 201 255]
+    [215 215 151 255]
     [209 213 201 255]]])
 
 (def tileset-bw

  [:ul-cover-bg :u-cover-bg :ur-cover-bg :ul-dark-cover-bg :u-dark-cover-bg :ur-dark-cover-bg :ul-light-cover-bg :u-light-cover-bg :ur-light-cover-bg :? :? :? :? ]
  [:l-cover-bg :cover-bg :r-cover-bg :l-dark-cover-bg :dark-cover-bg :r-dark-cover-bg :l-light-cover-bg :light-cover-bg :r-light-cover-bg :? :? :? :? ]
  [:bl-color-bg :b-cover-bg :br-cover-bg :bl-dark-cover-bg :b-dark-cover-bg :br-dark-cover-bg :bl-light-cover-bg :blight-cover-bg :br-light-cover-bg :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]
  [:? :? :? :? :? :? :? :? :? :? :? :? :? ]


      

(defn palette
  [palette-index]
  (for [[row line] (map-indexed vector tile-names)
        [col id]   (map-indexed vector line)]
    {:c id :fg [255 255 255] :bg [0 0 0] :x col :y row :palette-index palette-index}))

(def color-table-chars
  (for [[row line] (map-indexed vector color-table)
        [col bg]   (map-indexed vector line)]
    {:c \space :fg [255 255 255] :bg bg :x col :y (+ row 28)}))

(log/info font)
;(log/info "palette" (vec palette))

(defn -main [& _]
  ;; render in background thread
