Skip to content
Small hsl function
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cirru-src/hsl
cirru-test/hsl
doc
.gitignore
CHANGELOG.md
LICENSE
README.md
project.clj

README.md

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.

You can’t perform that action at this time.