0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-19 11:11:21 -05:00

Add missing import on colorpicker ns.

This commit is contained in:
Andrey Antukh 2016-01-12 19:55:26 +02:00
parent c397100cbc
commit 29b0036248

View file

@ -3,6 +3,7 @@
[rum.core :as rum]
[cats.labs.lens :as l]
[goog.events :as events]
[uxbox.util.color :refer (rgb->hex)]
[uxbox.ui.mixins :as mx])
(:import goog.events.EventType))
@ -21,7 +22,7 @@
r (aget (.-data image) 0)
g (aget (.-data image) 1)
b (aget (.-data image) 2)]
(callback {:hex (mx/rgb->hex [r g b])
(callback {:hex (rgb->hex [r g b])
:rgb [r g b]})))
(defn colorpicker-render