(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"}
(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 "ÉËÈ"}
(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 "Œ"}
(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)) => #{"É" "Ë" "È"}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close