|
1 | 1 | ### A Pluto.jl notebook ###
|
2 |
| -# v0.19.42 |
| 2 | +# v0.19.45 |
3 | 3 |
|
4 | 4 | using Markdown
|
5 | 5 | using InteractiveUtils
|
@@ -80,7 +80,7 @@ md"""**average font size:** $(@bind avgfontsize NumberField(1:100, default=12))
|
80 | 80 | md"""###### ✿ Mask Style"""
|
81 | 81 |
|
82 | 82 | # ╔═╡ f4844a5f-260b-4713-84bf-69cd8123c7fc
|
83 |
| -md"""**mask shape:** $(@bind mask_ Select([:auto, :customsvg, box, ellipse, squircle, ngon, star, bezingon, bezistar])) $(@bind configshape CheckBox(default=false))additional config |
| 83 | +md"""**mask shape:** $(@bind mask_ Select([:auto, :customsvg, box, ellipse, squircle, ngon, star, bezingon, bezistar])) $(@bind configshape CheckBox(default=false))additional config |
84 | 84 | """
|
85 | 85 |
|
86 | 86 | # ╔═╡ 1aa632dc-b3e8-4a9d-9b9e-c13cd05cf97e
|
|
153 | 153 | end
|
154 | 154 |
|
155 | 155 | # ╔═╡ 14666dc2-7ae4-4808-9db3-456eb26cd435
|
156 |
| -md"**text colors:** $(@bind colors_ Select([:auto; WordCloud.Schemes])) $(@bind colorstyle Select([:random, :gradient])) [*Browse colorschemes in `ColorSchemes.jl`*](https://juliagraphics.github.io/ColorSchemes.jl/stable/catalogue)" |
| 156 | +md"**text colors:** $(@bind colors_ Select([:auto; WordCloud.Schemes])) $(@bind colorstyle Select([:random, :gradient])) $(@bind glinting CheckBox(default=false))✨ [*Browse colorschemes*](https://juliagraphics.github.io/ColorSchemes.jl/stable/catalogue)" |
157 | 157 |
|
158 | 158 | # ╔═╡ 2870a2ee-aa99-48ec-a26d-fed7b040e6de
|
159 | 159 | @bind go Button(" 🎲 Try again ! ")
|
@@ -423,6 +423,12 @@ begin
|
423 | 423 | end
|
424 | 424 | @time wc = gen_cloud(words_weights)
|
425 | 425 | if wc !== nothing
|
| 426 | + if glinting |
| 427 | + animates = ["animate" => [:attributeName => "opacity", :values => "1;0.5;1", |
| 428 | + :begin => "$(rand(0:1000))ms", :dur => "1s", |
| 429 | + :repeatCount => "indefinite"] for _ in 1:length(wc)] |
| 430 | + configsvgimages!(wc, children=animates) |
| 431 | + end |
426 | 432 | paintsvg(wc, background=showbackground)
|
427 | 433 | end
|
428 | 434 | end
|
|
0 commit comments