Liking cljdoc? Tell your friends :D

hara.image.base.display.gradient


*default-len*clj


*default-ratio*clj


*default-table*clj


*default-total*clj


create-lookupclj

(create-lookup elems offset n)

creates a lookup based on the range

(-> (create-lookup "01234" 5 5) (str-vals)) => {5 "0", 6 "1", 7 "2", 8 "3", 9 "4"}

creates a lookup based on the range

(-> (create-lookup "01234" 5 5)
    (str-vals))
=> {5 "0", 6 "1", 7 "2", 8 "3", 9 "4"}
raw docstring

create-multiclj

(create-multi len)
(create-multi len ratio total)

creates a multi gradient map

(-> (create-multi 3) (select-keys [0 3 6]) (str-vals)) => {0 "ÆÑÊ", 3 "ŒØM", 6 "ÉËÈ"}

creates a multi gradient map

(-> (create-multi 3)
    (select-keys [0 3 6])
    (str-vals))
=> {0 "ÆÑÊ", 3 "ŒØM", 6 "ÉËÈ"}
raw docstring

create-singleclj

(create-single)
(create-single ratio total)

creates a single gradient map

(-> (create-single) (select-keys [0 1 2 3]) (str-vals)) => {0 "Æ", 1 "Ñ", 2 "Ê", 3 "Œ"}

creates a single gradient map

(-> (create-single)
    (select-keys [0 1 2 3])
    (str-vals))
=> {0 "Æ", 1 "Ñ", 2 "Ê", 3 "Œ"}
raw docstring

lookup-charclj

(lookup-char n)
(lookup-char table len n)
(lookup-char table len n i)

look up a character based on value

(str (lookup-char 0)) => #{"Æ" "Ñ" "Ê"}

(str (lookup-char 6)) => #{"É" "Ë" "È"}

look up a character based on value

(str (lookup-char 0))
=> #{"Æ" "Ñ" "Ê"}

(str (lookup-char 6))
=> #{"É" "Ë" "È"}
raw docstring

ramp-darkclj


ramp-lightclj

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close