color-test

A Clojure library designed to make rpg-style stat bars, using clansi for coloring.


License
EPL-1.0

Documentation

colorbars-clj

colorbars-clj

A Clojure library designed to make rpg-style stat bars, using 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 users add this to your :dependencies in project.clj:

[colorbars-clj "0.2.0-SNAPHOT"]

then use like this:

(use 'colorbars-clj)
(def hp 9)      ;; verbose for example
(def mhp 10)
(def width 20)

(hp-bar hp mhp width)

a pretty hit point bar

see intro for more

suggestions welcome!

License

Copyright © 2013 Patrick Ryan - phiat

Distributed under the Eclipse Public License, the same as Clojure.