Color picker improvements

This commit is contained in:
alonso.torres 2020-05-20 15:35:11 +02:00
parent 9b4ffbaf0c
commit e3f7e352d4
2 changed files with 16 additions and 2 deletions

View file

@ -33,7 +33,7 @@
[v]
(try
(into [] (gcolor/hexToRgb v))
(catch js/Object e [0 0 0])))
(catch :default e [0 0 0])))
(defn rgb->hex
[[r g b]]