Adds debug for shapes drawing

This commit is contained in:
alonso.torres 2024-01-17 12:25:17 +01:00
parent 2a7f115266
commit ece11c5958
11 changed files with 148 additions and 71 deletions

View file

@ -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))))