mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 12:27:20 +02:00
✨ Adds debug for shapes drawing
This commit is contained in:
parent
2a7f115266
commit
ece11c5958
11 changed files with 148 additions and 71 deletions
|
@ -12,6 +12,8 @@
|
|||
(:require
|
||||
[app.common.colors :as cc]
|
||||
[app.common.data :as d]
|
||||
[app.common.data.macros :as dm]
|
||||
[app.common.math :as mth]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
|
@ -82,3 +84,10 @@
|
|||
(:name color)
|
||||
(:color color)
|
||||
(gradient-type->string (:type (:gradient color)))))
|
||||
|
||||
(defn random-color
|
||||
[]
|
||||
(dm/fmt "rgb(%, %, %)"
|
||||
(mth/floor (* (js/Math.random) 256))
|
||||
(mth/floor (* (js/Math.random) 256))
|
||||
(mth/floor (* (js/Math.random) 256))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue