Specimen Report · Clojure

colorbars-clj

phiat/colorbars-clj

A toy Clojure library for making nice, colored stat bars for use in games. Uses clansi for color.

Stars
★ 1
Forks
⑂ 0
Language
Clojure
Size
236 kB
Last Push
12y ago
Forged
12y ago
<img src="http://i.imgur.com/HnoEPbo.png" title="colorbars-clj" alt="colorbars-clj"/> # colorbars-clj A Clojure library designed to make rpg-style stat bars, using [clansi](https://github.com/ams-clj/clansi) for coloring. There may be color correction issues when using different colorized terminals. You want pretty, colored, terminal-outputted stat bars for your rogue-like game? Try this... ## Usage [Leiningen](https://github.com/technomancy/leiningen) users add this to your :dependencies in `project.clj`: [colorbars-clj "0.2.0-SNAPHOT"] then use like this: ```clojure (use 'colorbars-clj) (def hp 9) ;; verbose for example (def mhp 10) (def width 20) (hp-bar hp mhp width) ``` <img src="http://i.imgur.com/tKil606.png" alt="a pretty hit point bar" title="hp bar" /> see [intro](https://github.com/phiat/colorbars-clj/blob/master/doc/intro.md) for more *suggestions welcome!* ## License Copyright © 2013 Patrick Ryan - phiat Distributed under the Eclipse Public License, the same as Clojure.
↗ GitHub