(load-resources
canvas
layer
urls
&
{:keys [fade-in fade-out] :or {fade-in 0.5 fade-out 0.5} :as options})
(load-urls urls progress-bar & options)
loads each url in the passed in list as an image. Updates the progress as it goes with a percentage and a thumbnail. Once complete, displays all the images fullsize.
loads each url in the passed in list as an image. Updates the progress as it goes with a percentage and a thumbnail. Once complete, displays all the images fullsize.
(progress-texture fraction
{:keys [empty-colour full-colour border-colour border-width
draw-border width height highlight highlight-offset
highlight-width lowlight lowlight-offset
lowlight-width]
:or {full-colour 8421504
lowlight-offset 0
draw-border false
highlight-offset 0
height 40
width 600
lowlight-width 1
border-colour 16777215
border-width 2
empty-colour 0
highlight-width 1}
:as options})
Draws an empty box that can serve as a default progress bar for preloading images
Draws an empty box that can serve as a default progress bar for preloading images
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close