mvc-works/hsl

Tiny HSL function


License
EPL-1.0

Documentation

hsl

A Clojure library designed to generate HSL color string.

Usage

Clojars Project

["mvc-works/hsl" "0.1.0"]
(ns hsl.core-test
  (:require [clojure.test :refer :all] [hsl.core :refer [hsl]]))

(deftest
  a-test
  (testing "without alpha" (is (= (hsl 1 2 3) "hsl(1,2%,3%)"))))

(deftest
  b-test
  (testing "with alpha" (is (= (hsl 1 2 3 0.7) "hsl(1,2%,3%,0.7)"))))

License

Copyright © 2016 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.