Skip to content

Commit

Permalink
Merge remote-tracking branch 'Briaoeuidhtns/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Dec 8, 2024
2 parents abfc513 + 1780578 commit bc06add
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/garden/color.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
(defn hsla->hex
"Convert an HSLA color map to a hexadecimal string."
[color]
(-> color hsla->rgba rgb->hex))
(-> color hsla->rgba rgba->hex))

(defn hex->hsl
"Convert a hexadecimal color to an HSL color."
Expand Down
8 changes: 7 additions & 1 deletion test/garden/color_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@
(color/as-hex rgba-red) hexa-red
(color/as-hex rgba-green) hexa-green
(color/as-hex rgba-blue) hexa-blue
(color/as-hex rgba-white) hexa-white)))
(color/as-hex rgba-white) hexa-white

(color/as-hex hsla-black) hexa-black
(color/as-hex hsla-red) hexa-red
(color/as-hex hsla-green) hexa-green
(color/as-hex hsla-blue) hexa-blue
(color/as-hex hsla-white) hexa-white)))

(deftest color-math-test
(testing "color+"
Expand Down

0 comments on commit bc06add

Please sign in to comment.